Index: branches/5.2.x/core/ckeditor/plugins/wsc/dialogs/ciframe.html =================================================================== diff -u -N -r15316 -r16404 --- branches/5.2.x/core/ckeditor/plugins/wsc/dialogs/ciframe.html (.../ciframe.html) (revision 15316) +++ branches/5.2.x/core/ckeditor/plugins/wsc/dialogs/ciframe.html (.../ciframe.html) (revision 16404) @@ -38,9 +38,26 @@ catch (e) {} } +function OnMessage (event) { + var message = event.data; + var destination = window.parent.parent; + destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ; +} + +function listenPostMessage() { + if (window.addEventListener) { // all browsers except IE before version 9 + window.addEventListener ("message", OnMessage, false); + }else { + if (window.attachEvent) { // IE before version 9 + window.attachEvent("onmessage", OnMessage); + } + } +} + function onLoad() { interval = window.setInterval( sendData2Master, 100 ); + listenPostMessage(); }