Sends a message from the modal window to the plugin.
Name | Type | Description |
name | string | The event name. |
data | object | The event data. |
function makeConvetration() { if (window.Asc.plugin.windowID) { window.Asc.plugin.sendToPlugin("onWindowMessage", {config: oConfig}); } else { window.Asc.plugin.executeMethod('ConvertDocument', [oConfig.convertType, oConfig.htmlHeadings, oConfig.base64img, oConfig.demoteHeadings, oConfig.renderHTMLTags], function(sOutput) { document.getElementById("text-area").value = sOutput; }); } };