Changeset 1776

Show
Ignore:
Timestamp:
2008-03-22 18:49:51 (4 months ago)
Author:
fredck
Message:

Fixed #1948 : Some CSS rules are reset to dialog elements to avoid conflict with the page CSS.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdialog.js

    r1726 r1776  
    7474                                        topDocument.scrollHeight || 0 ) - 1 + 'px' 
    7575                        } ) ; 
     76        } 
     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;' ; 
    7685        } 
    7786 
     
    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 
     
    202212                        // Setup the DIV that will be used to cover. 
    203213                        cover = topDocument.createElement( 'div' ) ; 
     214                        resetStyles( cover ) ; 
    204215                        FCKDomTools.SetElementStyles( cover, 
    205216                                { 
     
    217228                        { 
    218229                                var iframe = topDocument.createElement( 'iframe' ) ; 
     230                                resetStyles( iframe ) ; 
    219231                                iframe.hideFocus = true ; 
    220232                                iframe.frameBorder = 0 ; 
  • FCKeditor/trunk/_whatsnew.html

    r1775 r1776  
    116116                        the browser was able to enter in an infinite loop when working with multiple editors 
    117117                        in the same page. </li> 
     118                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1948">#1948</a>] Some 
     119                        CSS rules are reset to dialog elements to avoid conflict with the page CSS.</li> 
    118120        </ul> 
    119121        <h3>