文档加载完成回调
当文档完全加载完成时调用的函数。
参数
此事件无参数。
window.Asc.plugin.attachEditorEvent("onDocumentContentReady", () => {
let oProperties = {
"searchString" : "ONLYOFFICE",
"replaceString" : "ONLYOFFICE is cool",
"matchCase" : false
};
window.Asc.plugin.executeMethod("SearchAndReplace", [oProperties], function() {
window.Asc.plugin.executeCommand("close", "");
});
});