Do you want to: Ask a how-to question
Document Server version: 7.1.1
When I trigger the event initOnSelection Changed using the following code, the execute Method and call Command will loop infinitely.
Why is this happening? Is there any way to make them execute only once.
window.Asc.plugin.init = function () {
this.executeMethod(
"GetCurrentContentControlPr", [], function (obj) {
console.log("executeMethod");
})
this.callCommand(() => {
console.log("callCommand");
})
}
First of all, please note that you are using very outdated version of Document Server. I recommend updating it to the actual and checking the situation again.
In general, it is not quite clear what “initOnSelection Changed” event is? Can you share an example? This code solely as init runs with no issue on actual version of the editor.