nodejs: docxf and oform since v7.0

This commit is contained in:
Sergey Linnik
2021-12-07 18:41:42 +03:00
parent 600570f7c7
commit 65e34e52f9

View File

@ -191,6 +191,13 @@
}
var connectEditor = function () {
if ((config.document.fileType === "docxf" || config.document.fileType === "oform")
&& DocsAPI.DocEditor.version().split(".")[0] < 7) {
innerAlert("Please update ONLYOFFICE Docs to version 7.0");
return;
}
docEditor = new DocsAPI.DocEditor("iframeEditor", config);
fixSize();
};