Add message to sender external commnads

This commit is contained in:
Oleg Korshul 2020-11-12 18:52:43 +03:00
parent 86a7ea3abc
commit 55222b8b94

View file

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