[editor] Disable the editor-buttons in XFA documents

Given the differences between XFA documents and "normal" PDF documents, we don't support editing of the former ones. Hence, when a XFA-document is opened, we temporarily disable the editor-buttons.
This commit is contained in:
Jonas Jenwald 2022-06-05 10:00:08 +02:00
parent 9b22483e00
commit d34e7fff01
6 changed files with 37 additions and 15 deletions

View file

@ -93,6 +93,7 @@ function getViewerConfiguration() {
? document.getElementById("openFile")
: null,
print: document.getElementById("print"),
editorModeButtons: document.getElementById("editorModeButtons"),
editorNoneButton: document.getElementById("editorNone"),
editorFreeTextButton: document.getElementById("editorFreeText"),
presentationModeButton: document.getElementById("presentationMode"),