跳到主要内容

onDocumentContentReady

The function called when the document is completely loaded.

Parameters

This event has no parameters.

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", "");
});
});