Changeset 1047


Ignore:
Timestamp:
10/29/2007 06:30:51 AM (7 years ago)
Author:
martinkou
Message:

Fixed #1474 : Merged alfonsoml's proposed bug fix for null errors in IE during page refreshes.

Location:
FCKeditor/trunk/editor/_source
Files:
3 edited

Legend:

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

    r779 r1047  
    193193        this.Enabled = isEnabled ; 
    194194 
    195         this._OuterTable.className = isEnabled ? '' : 'SC_FieldDisabled' ; 
     195        // In IE it can happen when the page is reloaded that _OuterTable is null, so check its existence 
     196        if ( this._OuterTable ) 
     197                this._OuterTable.className = isEnabled ? '' : 'SC_FieldDisabled' ; 
    196198} 
    197199 
  • FCKeditor/trunk/editor/_source/classes/fcktoolbarbuttonui.js

    r779 r1047  
    128128        var e = this.MainElement ; 
    129129 
     130        // In IE it can happen when the page is reloaded that MainElement is null, so exit here 
     131        if ( !e ) 
     132                return ; 
     133 
    130134        switch ( parseInt( newState, 10 ) ) 
    131135        { 
  • FCKeditor/trunk/editor/_source/internals/fckdomtools.js

    r1010 r1047  
    381381        EnforcePaddingNode : function( doc, tagName ) 
    382382        { 
     383                // In IE it can happen when the page is reloaded that doc or doc.body is null, so exit here 
     384                if ( !doc || !doc.body ) 
     385                        return ; 
     386 
    383387                this.CheckAndRemovePaddingNode( doc, tagName, true ) ; 
    384388                if ( doc.body.lastChild && ( doc.body.lastChild.nodeType != 1 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy