ckeditor/plugins/wsc/dialogs/ciframe.html
changeset 0 44d330dccc59
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ckeditor/plugins/wsc/dialogs/ciframe.html	Thu Dec 15 18:10:20 2016 +0300
     1.3 @@ -0,0 +1,66 @@
     1.4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     1.5 +<!--
     1.6 +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
     1.7 +For licensing, see LICENSE.html or http://ckeditor.com/license
     1.8 +-->
     1.9 +<html>
    1.10 +<head>
    1.11 +	<title></title>
    1.12 +	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    1.13 +	<script type="text/javascript">
    1.14 +
    1.15 +function gup( name )
    1.16 +{
    1.17 +	name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
    1.18 +	var regexS = '[\\?&]' + name + '=([^&#]*)' ;
    1.19 +	var regex = new RegExp( regexS ) ;
    1.20 +	var results = regex.exec( window.location.href ) ;
    1.21 +
    1.22 +	if ( results )
    1.23 +		return results[ 1 ] ;
    1.24 +	else
    1.25 +		return '' ;
    1.26 +}
    1.27 +
    1.28 +var interval;
    1.29 +
    1.30 +function sendData2Master()
    1.31 +{
    1.32 +	var destination = window.parent.parent ;
    1.33 +	try
    1.34 +	{
    1.35 +		if ( destination.XDTMaster )
    1.36 +		{
    1.37 +			var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
    1.38 +			window.clearInterval( interval ) ;
    1.39 +		}
    1.40 +	}
    1.41 +	catch (e) {}
    1.42 +}
    1.43 +
    1.44 +function OnMessage (event) {
    1.45 +	        var message = event.data;
    1.46 +	        var destination = window.parent.parent;
    1.47 +	        destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;
    1.48 +}
    1.49 +
    1.50 +function listenPostMessage() {
    1.51 +    if (window.addEventListener) { // all browsers except IE before version 9
    1.52 +            window.addEventListener ("message", OnMessage, false);
    1.53 +    }else {
    1.54 +            if (window.attachEvent) { // IE before version 9
    1.55 +                        window.attachEvent("onmessage", OnMessage);
    1.56 +                }
    1.57 +        }
    1.58 +}
    1.59 +
    1.60 +function onLoad()
    1.61 +{
    1.62 +	interval = window.setInterval( sendData2Master, 100 );
    1.63 +	listenPostMessage();
    1.64 +}
    1.65 +
    1.66 +</script>
    1.67 +</head>
    1.68 +<body onload="onLoad()"><p></p></body>
    1.69 +</html>