Ticket #4517: 4517_2.patch

File 4517_2.patch, 1.7 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/dialog/plugin.js

     
    16731673
    16741674                if ( !coverElement )
    16751675                {
     1676                        var backgroundColorStyle = editor.config.dialog_backgroundCoverColor || 'white';
     1677
    16761678                        var html = [
    16771679                                        '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ),
    16781680                                        '; z-index: ', editor.config.baseFloatZIndex,
    16791681                                        '; top: 0px; left: 0px; ',
    1680                                         'background-color: ', editor.config.dialog_backgroundCoverColor || 'white',
     1682                                        ( !CKEDITOR.env.ie6Compat ? 'background-color: ' + backgroundColorStyle : '' ),
    16811683                                        '" id="cke_dialog_background_cover">'
    16821684                                ];
    16831685
     
    16851687                        if ( CKEDITOR.env.ie6Compat )
    16861688                        {
    16871689                                // Support for custom document.domain in IE.
    1688                                 var isCustomDomain = CKEDITOR.env.isCustomDomain();
     1690                                var isCustomDomain = CKEDITOR.env.isCustomDomain(),
     1691                                        iframeHtml = '<html><body style=\\\'background-color:' + backgroundColorStyle + ';\\\'></body></html>';
    16891692
    16901693                                html.push(
    16911694                                        '<iframe' +
     
    16941697                                                ' id="cke_dialog_background_iframe"' +
    16951698                                                ' src="javascript:' );
    16961699
    1697                                 html.push(
    1698                                                 isCustomDomain ?
    1699                                                         'void((function(){' +
     1700                                html.push( 'void((function(){' +
    17001701                                                                'document.open();' +
    1701                                                                 'document.domain=\'' + document.domain + '\';' +
     1702                                                                ( isCustomDomain ? 'document.domain=\'' + document.domain + '\';' : '' ) +
     1703                                                                'document.write( \'' + iframeHtml + '\' );' +
    17021704                                                                'document.close();' +
    1703                                                         '})())'
    1704                                                 :
    1705                                                         '\'\'' );
     1705                                                        '})())' );
    17061706
    17071707                                html.push(
    17081708                                                '"' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy