Index: /FCKeditor/trunk/_test/manual/fckcontextmenu/test1.htm
===================================================================
--- /FCKeditor/trunk/_test/manual/fckcontextmenu/test1.htm	(revision 57)
+++ /FCKeditor/trunk/_test/manual/fckcontextmenu/test1.htm	(revision 58)
@@ -15,4 +15,5 @@
 
 	</script>
+	<script src="../../../editor/_source/fckconstants.js" type="text/javascript"></script>
 	<script src="../../../editor/_source/fckjscoreextensions.js" type="text/javascript"></script>
 	<script src="../../../editor/_source/internals/fckbrowserinfo.js" type="text/javascript"></script>
@@ -55,5 +56,6 @@
 window.onload = function()
 {
-	oContextMenu = new FCKContextMenu( window, null, 'ltr' ) ;
+	oContextMenu = new FCKContextMenu( window, 'ltr' ) ;
+	oContextMenu.SetMouseClickWindow( window ) ;
 	oContextMenu.OnBeforeOpen = ContextMenu_OnBeforeOpen ;
 	oContextMenu.OnItemClick = ContextMenu_OnItemClick ;
Index: /FCKeditor/trunk/editor/_source/classes/fckcontextmenu.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckcontextmenu.js	(revision 57)
+++ /FCKeditor/trunk/editor/_source/classes/fckcontextmenu.js	(revision 58)
@@ -6,5 +6,5 @@
 */
 
-var FCKContextMenu = function( parentWindow, mouseClickWindow, langDir )
+var FCKContextMenu = function( parentWindow, langDir )
 {
 	var oPanel = this._Panel = new FCKPanel( parentWindow, true ) ;
@@ -17,6 +17,4 @@
 	
 	this._Redraw = true ;
-	
-	this.SetMouseClickWindow( mouseClickWindow || parentWindow ) ;
 }
 
Index: /FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js	(revision 57)
+++ /FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js	(revision 58)
@@ -19,5 +19,5 @@
 function FCK_ContextMenu_Init()
 {
-	var oInnerContextMenu = FCK.ContextMenu._InnerContextMenu = new FCKContextMenu( FCKBrowserInfo.IsIE ? window : window.parent, FCK.EditorWindow, FCKLang.Dir ) ;
+	var oInnerContextMenu = FCK.ContextMenu._InnerContextMenu = new FCKContextMenu( FCKBrowserInfo.IsIE ? window : window.parent, FCKLang.Dir ) ;
 	oInnerContextMenu.OnBeforeOpen	= FCK_ContextMenu_OnBeforeOpen ;
 	oInnerContextMenu.OnItemClick	= FCK_ContextMenu_OnItemClick ;
