Changeset 659

Show
Ignore:
Timestamp:
2007-08-13 10:42:53 (17 months ago)
Author:
martinkou
Message:

Fixed again the issue where add/remove list commands would delete all contents in the current block.
Fix for #1060 : Made FCKeditor run in Gran Paradiso.

Location:
FCKeditor/trunk/editor/_source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/fckeditorapi.js

    r546 r659  
    112112                                eval.call( oParentWindow, sScript ) ; 
    113113                        } 
    114                         else if ( FCKBrowserInfo.IsSafari ) 
     114                        else if ( FCKBrowserInfo.IsSafari || FCKBrowserInfo.IsGecko ) 
    115115                        { 
    116                                 // oParentWindow.eval in Safari executes in the calling window 
     116                                // oParentWindow.eval in Safari and Gran Paradiso executes in the calling window 
    117117                                // environment, instead of the parent one. The following should make it work. 
    118118                                var oParentDocument = oParentWindow.document ; 
  • FCKeditor/trunk/editor/_source/internals/fckdomtools.js

    r656 r659  
    330330                if ( doc.body.childNodes.length == 1  
    331331                                && doc.body.firstChild.nodeType == 1 
     332                                && doc.body.firstChild.tagName.toLowerCase() == 'br' 
    332333                                && ( doc.body.firstChild.getAttribute( '_moz_dirty' ) != null  
    333334                                        || doc.body.firstChild.getAttribute( 'type' ) == '_moz' ) )