Changeset 588
- Timestamp:
- 2007-07-28 18:24:34 (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r569 r588 226 226 // In Firefox if the iframe is initially hidden it can't be set to designMode and it raises an exception 227 227 // 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 ) ; 229 229 } 230 230 … … 236 236 function FCKEditingArea_Document_AttributeNodeModified( evt ) 237 237 { 238 var editingArea = evt.currentTarget. defaultView._FCKEditingArea ;238 var editingArea = evt.currentTarget.contentWindow._FCKEditingArea ; 239 239 240 240 // We want to run our function after the events no longer fire, so we can know that it's a stable situation … … 252 252 delete this._timer ; 253 253 // 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 ) ; 255 255 // Let's try now to set the editing area editable 256 256 // If it fails it will set up the Mutation Listener again automatically