Ticket #5559: 5559.patch

File 5559.patch, 1.5 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    304304                                                        // call document.open().
    305305                                                        ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) +
    306306
    307                                                         ( ( 'parent.CKEDITOR.tools.callFunction(' + setDataFn + ',document);' ) ) +
    308 
    309307                                                        'document.close();';
    310308
    311309                                                iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
    312310                                                        ' style="width:100%;height:100%"' +
    313311                                                        ' frameBorder="0"' +
    314312                                                        ' title="' + frameLabel + '"' +
    315                                                         // With FF, the 'src' attribute should be left empty to
     313                                                        // With IE, the custom domain has to be taken care at first,
     314                                                        // for other browers, the 'src' attribute should be left empty to
    316315                                                        // trigger iframe's 'load' event.
    317                                                         ' src="' + ( CKEDITOR.env.gecko ? '' : 'javascript:void(function(){' + encodeURIComponent( srcScript ) + '}())' ) + '"' +
     316                                                        ' src="' + ( CKEDITOR.env.ie ? 'javascript:void(function(){' + encodeURIComponent( srcScript ) + '}())' : '' ) + '"' +
    318317                                                        ' tabIndex="' + editor.tabIndex + '"' +
    319318                                                        ' allowTransparency="true"' +
    320319                                                        '></iframe>' );
    321320
    322321                                                // With FF, it's better to load the data on iframe.load. (#3894,#4058)
    323                                                 CKEDITOR.env.gecko && iframe.on( 'load', function( ev )
     322                                                iframe.on( 'load', function( ev )
    324323                                                        {
    325324                                                                ev.removeListener();
    326325
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy