Skip to content

Build your personal knowledge base with Trilium Notes

pdf.js: add ability to comment selected text

contributora92d846b5799
diff --git a/packages/pdfjs-viewer/src/custom.ts b/packages/pdfjs-viewer/src/custom.ts
index 5c2eaa892d..997b8d66f1 100644
--- a/packages/pdfjs-viewer/src/custom.ts
+++ b/packages/pdfjs-viewer/src/custom.ts
@@ -46,6 +46,7 @@ function configurePdfViewerOptions() {
if (event.detail?.source === window && window.PDFViewerApplicationOptions) {
window.PDFViewerApplicationOptions.set("disablePreferences", true);
window.PDFViewerApplicationOptions.set("enableHighlightFloatingButton", true);
+ window.PDFViewerApplicationOptions.set("enableComment", true);
}
};
if (window.parent && window.parent !== window) {