Ticket #4517: 4517_2.patch
File 4517_2.patch, 1.7 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/plugin.js
1673 1673 1674 1674 if ( !coverElement ) 1675 1675 { 1676 var backgroundColorStyle = editor.config.dialog_backgroundCoverColor || 'white'; 1677 1676 1678 var html = [ 1677 1679 '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ), 1678 1680 '; z-index: ', editor.config.baseFloatZIndex, 1679 1681 '; top: 0px; left: 0px; ', 1680 'background-color: ', editor.config.dialog_backgroundCoverColor || 'white',1682 ( !CKEDITOR.env.ie6Compat ? 'background-color: ' + backgroundColorStyle : '' ), 1681 1683 '" id="cke_dialog_background_cover">' 1682 1684 ]; 1683 1685 … … 1685 1687 if ( CKEDITOR.env.ie6Compat ) 1686 1688 { 1687 1689 // 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>'; 1689 1692 1690 1693 html.push( 1691 1694 '<iframe' + … … 1694 1697 ' id="cke_dialog_background_iframe"' + 1695 1698 ' src="javascript:' ); 1696 1699 1697 html.push( 1698 isCustomDomain ? 1699 'void((function(){' + 1700 html.push( 'void((function(){' + 1700 1701 'document.open();' + 1701 'document.domain=\'' + document.domain + '\';' + 1702 ( isCustomDomain ? 'document.domain=\'' + document.domain + '\';' : '' ) + 1703 'document.write( \'' + iframeHtml + '\' );' + 1702 1704 'document.close();' + 1703 '})())' 1704 : 1705 '\'\'' ); 1705 '})())' ); 1706 1706 1707 1707 html.push( 1708 1708 '"' +