Name | Description |
callCommand | Defines the method used to send the data back to the editor. It replaces the executeCommand method when working with texts in order to simplify the syntax of the script that is necessary to pass to the editors using ONLYOFFICE Document Builder API. It allows the plugin to send structured data that can be inserted to the resulting document file (formatted paragraphs, tables, text parts, and separate words, etc.). The callback is the result that the command returns. It is an optional parameter. In case it is missing, the window.Asc.plugin.onCommandCallback function will be used to return the result of the command execution.
This method is executed in its own context isolated from other JavaScript data. If some parameters or other data need to be passed to this method, use Asc.scope object. |
callModule | Defines the method used to execute a remotely located script following a link. |
createInputHelper | Defines the method used to create an input helper - a window that appears and disappears when you type text. Its location is tied to the cursor. |
executeCommand | Defines the method used to send the data back to the editor.
Now this method is mainly used to work with the OLE objects or close the plugin without any other commands. It is also retained for using with text so that the previous versions of the plugin remain compatible. The callback is the result that the command returns. It is an optional parameter. In case it is missing, the window.Asc.plugin.onCommandCallback function will be used to return the result of the command execution. The second parameter is the JavaScript code for working with ONLYOFFICE Document Builder API
that allows the plugin to send structured data inserted to the resulting document file (formatted paragraphs, tables, text parts, and separate words, etc.).
When creating/editing OLE objects, two extensions are used to work with them:
When creating/editing the objects, their properties can be passed to the window.Asc.plugin.info object that defines how the object should look. |
executeMethod | Defines the method used to execute certain editor methods using the plugin. The callback is the result that the method returns. It is an optional parameter. In case it is missing, the window.Asc.plugin.onMethodReturn function will be used to return the result of the method execution. |
getInputHelper | Defines the method used to get the InputHelper object. |
loadModule | Defines the method used to load a remotely located text resource. |
resizeWindow | Defines the method used to change the window size updating the minimum/maximum sizes.
|
sendToPlugin | Sends a message from the modal window to the plugin. |