Add message to sender external commnads
This commit is contained in:
parent
86a7ea3abc
commit
55222b8b94
|
@ -303,7 +303,9 @@
|
||||||
if ( msg ) {
|
if ( msg ) {
|
||||||
if ( msg.type === "onExternalPluginMessage" ) {
|
if ( msg.type === "onExternalPluginMessage" ) {
|
||||||
_sendCommand(msg);
|
_sendCommand(msg);
|
||||||
} else
|
} else if (msg.type === "onExternalPluginMessageCallback") {
|
||||||
|
postMessage(window.parent, msg);
|
||||||
|
} else
|
||||||
if ( msg.frameEditorId == placeholderId ) {
|
if ( msg.frameEditorId == placeholderId ) {
|
||||||
var events = _config.events || {},
|
var events = _config.events || {},
|
||||||
handler = events[msg.event],
|
handler = events[msg.event],
|
||||||
|
|
Loading…
Reference in a new issue