Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsxindex 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 }} />;}