Ticket #8277: 8277.patch

File 8277.patch, 1.5 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/themes/default/theme.js

     
    227227                                                        '<div id="%bl#" class="%bl"></div>' +
    228228                                                        '<div id="%bc#" class="%bc"></div>' +
    229229                                                        '<div id="%br#" class="%br"></div>' +
    230                                                         // IFrame shim for dialog that masks activeX in IE. (#7619)
    231                                                         ( CKEDITOR.env.ie && !CKEDITOR.env.ie6Compat? '<iframe class="cke_iframe_shim" frameborder="0" tabindex="-1" src="javascript:void(0)"></iframe>' : '' ),
    232230                                                        '</td></tr>' +
    233231                                                '</table>',
    234232
     
    244242                                title = body.getChild( 0 ),
    245243                                close = body.getChild( 1 );
    246244
     245                        // IFrame shim for dialog that masks activeX in IE. (#7619)
     246                        if ( CKEDITOR.env.ie && !CKEDITOR.env.ie6Compat )
     247                        {
     248                                var isCustomDomain = CKEDITOR.env.isCustomDomain(),
     249                                        src = 'javascript:void(function(){' + encodeURIComponent( 'document.open();' + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 'document.close();' ) + '}())',
     250                                        iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
     251                                                        ' frameBorder="0"' +
     252                                                        ' class="cke_iframe_shim"' +
     253                                                        ' src="' + src + '"' +
     254                                                        ' tabIndex="-1"' +
     255                                                        '></iframe>' );
     256                                iframe.appendTo( body.getParent() );
     257                        }
     258
    247259                        // Make the Title and Close Button unselectable.
    248260                        title.unselectable();
    249261                        close.unselectable();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy