Ticket #1948: 1948.patch

File 1948.patch, 2.0 KB (added by Frederico Caldeira Knabben, 16 years ago)
  • _whatsnew.html

     
    108108                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1832">#1832</a>] Calling
    109109                        FCK.InsertHtml() in non-IE browsers would now activate the document processor
    110110                        as expected.</li>
     111                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1948">#1948</a>] Some
     112                        CSS rules are reset to dialog elements to avoid conflict with the page CSS.</li>
    111113        </ul>
    112114        <h3>
    113115                Version 2.6 Beta 1</h3>
  • editor/_source/internals/fckdialog.js

     
    7474                                        topDocument.scrollHeight || 0 ) - 1 + 'px'
    7575                        } ) ;
    7676        }
     77       
     78        var resetStyles = function( element )
     79        {
     80                element.style.cssText = 'margin:0;' +
     81                        'padding:0;' +
     82                        'border:0;' +
     83                        'background-color:transparent;' +
     84                        'background-image:none;' ;
     85        }
    7786
    7887        return {
    7988                SelectionData : null,
     
    138147
    139148                        // Setup the IFRAME that will hold the dialog.
    140149                        var dialog = topDocument.createElement( 'iframe' ) ;
     150                        resetStyles( dialog ) ;
    141151                        dialog.src = FCKConfig.BasePath + 'fckdialog.html' ;
    142152
    143153                        // Dummy URL for testing whether the code in fckdialog.js alone leaks memory.
     
    201211                {
    202212                        // Setup the DIV that will be used to cover.
    203213                        cover = topDocument.createElement( 'div' ) ;
     214                        resetStyles( cover ) ;
    204215                        FCKDomTools.SetElementStyles( cover,
    205216                                {
    206217                                        'position' : 'absolute',
     
    216227                        if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 )
    217228                        {
    218229                                var iframe = topDocument.createElement( 'iframe' ) ;
     230                                resetStyles( iframe ) ;
    219231                                iframe.hideFocus = true ;
    220232                                iframe.frameBorder = 0 ;
    221233                                iframe.src = FCKTools.GetVoidUrl() ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy