Changeset 444

Show
Ignore:
Timestamp:
2007-07-13 19:39:53 (18 months ago)
Author:
alfonsoml
Message:

Trying to load the editor hidden in Firefox (testcase4) was giving errors. Fixes also #962 as it was related

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

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckdomrange_gecko.js

    r435 r444  
    3030        var oSel = this.Window.getSelection() ; 
    3131 
    32         if ( oSel.rangeCount > 0 ) 
     32        if ( oSel && oSel.rangeCount > 0 ) 
    3333        { 
    3434                this._Range = FCKW3CRange.CreateFromRange( this.Window.document, oSel.getRangeAt(0) ) ; 
  • FCKeditor/trunk/editor/_source/classes/fckdomrange.js

    r408 r444  
    280280        CreateBookmark2 : function() 
    281281        { 
     282                // If there is no range then get out of here. 
     283                // It happens on initial load in Safari #962 and if the editor it's hidden also in Firefox 
     284                if ( ! this._Range ) 
     285                        return { "Start" : 0, "End" : 0 } ; 
     286                         
    282287                // First, we record down the offset values 
    283288                var bookmark =