Index: /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js	(revision 859)
+++ /FCKeditor/trunk/editor/_source/internals/fckselection_gecko.js	(revision 860)
@@ -114,4 +114,6 @@
 FCKSelection.GetBoundaryParentElement = function( startBoundary )
 {
+	if ( ! FCK.EditorWindow )
+		return null ;
 	if ( this.GetType() == 'Control' )
 		return FCKSelection.GetSelectedElement().parentNode ;
