Changeset 449
- Timestamp:
- 2007-07-15 00:38:13 (17 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r445 r449 220 220 // In Firefox if the iframe is initially hidden it can't be set to designMode and it raises an exception 221 221 // So we set up a DOM Mutation event Listener on the HTML, as it will raise several events when the document is visible again 222 FCKTools.AddEventListener( this.Document, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ;222 FCKTools.AddEventListener( oDoc, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 223 223 } 224 224 … … 230 230 function FCKEditingArea_Document_AttributeNodeModified( evt ) 231 231 { 232 var oDoc = evt.currentTarget ; 233 var oWindow = oDoc.defaultView ; 234 var editingArea = oWindow._FCKEditingArea ; 232 var editingArea = evt.currentTarget.defaultView._FCKEditingArea ; 235 233 236 234 // We want to run our function after the events no longer fire, so we can know that it's a stable situation 237 235 if ( editingArea._timer ) 238 { 239 oWindow.clearTimeout( editingArea._timer ) ; 240 delete editingArea._timer ; 241 } 242 243 editingArea._timer = FCKTools.SetTimeout( editingArea._MakeEditableByMutation, 1000, editingArea ) ; 236 window.clearTimeout( editingArea._timer ) ; 237 238 editingArea._timer = FCKTools.SetTimeout( FCKEditingArea_MakeEditableByMutation, 1000, editingArea ) ; 244 239 } 245 240 246 241 // This function ideally should be called after the document is visible, it does clean up of the 247 242 // mutation tracking and tries again to make the area editable. 248 FCKEditingArea.prototype._MakeEditableByMutation = function()243 function FCKEditingArea_MakeEditableByMutation() 249 244 { 250 245 // Clean up