pdf.js: add ability to comment selected text

This commit is contained in:
contributor 2026-03-15 18:27:16 +02:00
parent 9290a60b23
commit a92d846b57

View File

@ -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) {