docxf and oform since v7.0

This commit is contained in:
Oleg Sinizin
2021-12-08 11:10:38 +03:00
committed by Sergey Linnik
parent 65e34e52f9
commit beb9885b03
8 changed files with 44 additions and 1 deletions

View File

@ -506,6 +506,12 @@
config.events.onRequestSaveAs = onRequestSaveAs;
};
if ((config.document.fileType === "docxf" || config.document.fileType === "oform")
&& DocsAPI.DocEditor.version().split(".")[0] < 7) {
innerAlert("Please update ONLYOFFICE Docs to version 7.0 to work on fillable forms online.");
return;
}
docEditor = new DocsAPI.DocEditor("iframeEditor", config);
};