Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail:
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
I’m trying to call executeMethod onDocumentStateChange using the below code snippet but the callback for executeMethod never works nor any error comes.
Note: I’m using DocumentEditor component from @onlyoffice/document-editor-react module.
var connector = docEditor.createConnector();
connector.connect();
connector.executeMethod(“GetAllContentControls”,null,function(data) {
alert(“callback called!!”);
for (var i = 0; i < data.length; i++) {
console.log(data[i].Tag);
}
});
Document Server version: 7.2.2
Browser version: Chrome 109.0
Attach logs if possible
Hello @khushboojain
As far as I see, you have commercial license. I believe it’s better to contact us via Zendesk to get prompt replies since we have to take a closer look at described scenario. Please create a ticket here: https://helpdesk.onlyoffice.com/hc/en-us
Hello @gilneifreitas
If you have a commercial license, it’s better to contact colleagues of mine via Zendesk support system to get prompt replies. Please create a ticket and describe the situation as detailed as possible. They will need to take a look at your editor initialization config file and how exactly you are creating the connector class.
Hello @gilneifreitas
Sorry for the late reply.
As far as I see, the mentioned case is closed as solved. If you still have any questions, please create a separate ticket.