Changeset 588

Show
Ignore:
Timestamp:
2007-07-28 18:24:34 (16 months ago)
Author:
alfonsoml
Message:

Fix again #321 as Firefox 2.0.0.5 has broken the detection.

Files:
1 modified

Legend:

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

    r569 r588  
    226226                        // In Firefox if the iframe is initially hidden it can't be set to designMode and it raises an exception 
    227227                        // So we set up a DOM Mutation event Listener on the HTML, as it will raise several events when the document is  visible again 
    228                         FCKTools.AddEventListener( oDoc, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
     228                        FCKTools.AddEventListener( this.Window.frameElement, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
    229229                } 
    230230 
     
    236236function FCKEditingArea_Document_AttributeNodeModified( evt ) 
    237237{ 
    238         var editingArea = evt.currentTarget.defaultView._FCKEditingArea ; 
     238        var editingArea = evt.currentTarget.contentWindow._FCKEditingArea ; 
    239239         
    240240        // We want to run our function after the events no longer fire, so we can know that it's a stable situation 
     
    252252        delete this._timer ; 
    253253        // Now we don't want to keep on getting this event 
    254         FCKTools.RemoveEventListener( this.Document, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
     254        FCKTools.RemoveEventListener( this.Window.frameElement, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
    255255        // Let's try now to set the editing area editable 
    256256        // If it fails it will set up the Mutation Listener again automatically