Yes, I also encountered this problem when I was using it. The conclusion I can get so far is the same as what you said before, but the authorities don’t seem to have solved the problem.
I wonder if your team has found a suitable solution to this problem?
I implemented this requirement in a different way, but the compiled plug-in must be placed on the server of the service. This is not very convenient. It is also because of cross-domain problems.
The general solution is as follows:
your web page:
docEditor = new DocsAPI.DocEditor("openFile", testConfig);
docEditor.serviceCommand("selfKey", anyMessage);
your plugins code:
window.parent.Common.Gateway.on(“internalcommand”, (data) => {
if (data == null || data.command == null || data.command == “”) return;
if(data.command === “selfKey”) console.log(data);
});
You can get any message you send using serviceCommand in the Gateway method.