Merge pull request #564 from ONLYOFFICE/feature/externalCallback

Feature/external callback
This commit is contained in:
Julia Radzhabova 2020-11-12 21:11:44 +03:00 committed by GitHub
commit 89f7a46eff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,6 +303,8 @@
if ( msg ) {
if ( msg.type === "onExternalPluginMessage" ) {
_sendCommand(msg);
} else if (msg.type === "onExternalPluginMessageCallback") {
postMessage(window.parent, msg);
} else
if ( msg.frameEditorId == placeholderId ) {
var events = _config.events || {},