Skip to content

Build your personal knowledge base with Trilium Notes

fix(office): opt the preview into text selection

Elian Doranfb7660a69f12
diff --git a/apps/client/src/widgets/type_widgets/file/Office.tsx b/apps/client/src/widgets/type_widgets/file/Office.tsx
index 9ce43048de..de2c906474 100644
--- a/apps/client/src/widgets/type_widgets/file/Office.tsx
+++ b/apps/client/src/widgets/type_widgets/file/Office.tsx
@@ -52,5 +52,5 @@ export default function OfficePreview({ note }: { note: FNote }) {
);
}
- return <div class="ck-content office-preview-body" dangerouslySetInnerHTML={{ __html: html }} />;
+ return <div class="ck-content office-preview-body selectable-text" dangerouslySetInnerHTML={{ __html: html }} />;
}