I would like to automatically open a plugin in the editor. Specifically, the process I am trying to automate is the user action below:
- Click “Plugins” tab
- Click icon for target plugin
My thought is to create a function called
openPlugin called by the
onPluginsReady event. I am currently receiving a CORS error if I try to access the iframe contentDocument/contentWindow in OnlyOffice 7.1, so I do not want to traverse the DOM to open the plugin.
I am adding the plugin through the sdkjs-plugins folder ONLYOFFICE Api Documentation - Adding plugins
How can I automatically run a plugin after the editor is ready?