Index: /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js	(revision 587)
+++ /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js	(revision 588)
@@ -226,5 +226,5 @@
 			// In Firefox if the iframe is initially hidden it can't be set to designMode and it raises an exception
 			// So we set up a DOM Mutation event Listener on the HTML, as it will raise several events when the document is  visible again
-			FCKTools.AddEventListener( oDoc, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ;
+			FCKTools.AddEventListener( this.Window.frameElement, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ;
 		}
 
@@ -236,5 +236,5 @@
 function FCKEditingArea_Document_AttributeNodeModified( evt )
 {
-	var editingArea = evt.currentTarget.defaultView._FCKEditingArea ;
+	var editingArea = evt.currentTarget.contentWindow._FCKEditingArea ;
 	
 	// We want to run our function after the events no longer fire, so we can know that it's a stable situation
@@ -252,5 +252,5 @@
 	delete this._timer ;
 	// Now we don't want to keep on getting this event
-	FCKTools.RemoveEventListener( this.Document, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ;
+	FCKTools.RemoveEventListener( this.Window.frameElement, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ;
 	// Let's try now to set the editing area editable
 	// If it fails it will set up the Mutation Listener again automatically
