rem: var FCKContextMenu=function(A,B,C){var D=this._Panel=new FCKPanel(A,true);D.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');D.IsContextMenu=true;D.EnableContextMenu(false);var E=this._MenuBlock=new FCKMenuBlock();E.Dir=C;E._FCKContextMenu=this;E.Panel=D;E.OnItemClick=FCKContextMenu_MenuBlock_OnItemClick;this._Redraw=true;this.SetMouseClickWindow(B||A);};FCKContextMenu.prototype.SetMouseClickWindow=function(A){if (!FCKBrowserInfo.IsIE){this._Document=A.document;this._Document.addEventListener('contextmenu',FCKContextMenu_Document_OnContextMenu,false);}};FCKContextMenu.prototype.AddItem=function(A,B,C,D){var E=this._MenuBlock.AddItem(A,B,C,D);this._Redraw=true;return E;};FCKContextMenu.prototype.AddSeparator=function(){this._MenuBlock.AddSeparator();this._Redraw=true;};FCKContextMenu.prototype.RemoveAllItems=function(){this._MenuBlock.RemoveAllItems();this._Redraw=true;};FCKContextMenu.prototype.AttachToElement=function(A){A._FCKContextMenu=this;if (FCKBrowserInfo.IsIE) A.oncontextmenu=FCKContextMenu_AttachedElement_OnContextMenu;};function FCKContextMenu_Document_OnContextMenu(e){var el=e.target;while (el){if (el._FCKContextMenu){FCKTools.CancelEvent(e);FCKContextMenu_AttachedElement_OnContextMenu(e,el);};el=el.parentNode;}};function FCKContextMenu_AttachedElement_OnContextMenu(e,el){var oIEEvent;if (!e) oIEEvent=FCKTools.GetElementWindow(this).event;var eTarget=el||(e?e.target:this);var oContextMenu=eTarget._FCKContextMenu;if (oContextMenu.OnBeforeOpen) oContextMenu.OnBeforeOpen.call(oContextMenu,eTarget);if (oContextMenu._Redraw){oContextMenu._MenuBlock.Create(oContextMenu._Panel.MainNode);oContextMenu._Redraw=false;};oContextMenu._Panel.Show(e?e.pageX:oIEEvent.screenX,e?e.pageY:oIEEvent.screenY,e?e.currentTarget:null);return false;};function FCKContextMenu_MenuBlock_OnItemClick(menuBlock,menuItem){var oContextMenu=menuBlock._FCKContextMenu;oContextMenu._Panel.Hide();if (oContextMenu.OnItemClick) oContextMenu.OnItemClick.call(oContextMenu,menuItem);} 
add: var FCKContextMenu=function(A,B,C){var D=this._Panel=new FCKPanel(A,true);D.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');D.IsContextMenu=true;var E=this._MenuBlock=new FCKMenuBlock();E.Panel=D;E.OnClick=FCKTools.CreateEventListener(FCKContextMenu_MenuBlock_OnClick,this);this._Redraw=true;this.SetMouseClickWindow(B||A);};FCKContextMenu.prototype.SetMouseClickWindow=function(A){if (!FCKBrowserInfo.IsIE){this._Document=A.document;this._Document.addEventListener('contextmenu',FCKContextMenu_Document_OnContextMenu,false);}};FCKContextMenu.prototype.AddItem=function(A,B,C,D){var E=this._MenuBlock.AddItem(A,B,C,D);this._Redraw=true;return E;};FCKContextMenu.prototype.AddSeparator=function(){this._MenuBlock.AddSeparator();this._Redraw=true;};FCKContextMenu.prototype.RemoveAllItems=function(){this._MenuBlock.RemoveAllItems();this._Redraw=true;};FCKContextMenu.prototype.AttachToElement=function(A){if (FCKBrowserInfo.IsIE) FCKTools.AddEventListenerEx(A,'contextmenu',FCKContextMenu_AttachedElement_OnContextMenu,this);else A._FCKContextMenu=this;};function FCKContextMenu_Document_OnContextMenu(e){var el=e.target;while (el){if (el._FCKContextMenu){FCKTools.CancelEvent(e);FCKContextMenu_AttachedElement_OnContextMenu(e,el._FCKContextMenu,el);};el=el.parentNode;}};function FCKContextMenu_AttachedElement_OnContextMenu(ev,fckContextMenu,el){var eTarget=el||this;if (fckContextMenu.OnBeforeOpen) fckContextMenu.OnBeforeOpen.call(fckContextMenu,eTarget);if (fckContextMenu._Redraw){fckContextMenu._MenuBlock.Create(fckContextMenu._Panel.MainNode);fckContextMenu._Redraw=false;};fckContextMenu._Panel.Show(ev.pageX||ev.screenX,ev.pageY||ev.screenY,ev.currentTarget||null);return false;};function FCKContextMenu_MenuBlock_OnClick(menuItem,contextMenu){contextMenu._Panel.Hide();FCKTools.RunFunction(contextMenu.OnItemClick,contextMenu,menuItem);} 
context: var FCKContextMenu=function(A,B,C){var D=this._Panel=new FCKPanel(A,true);D.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');D.IsContextMenu=true;D.EnableContextMenu(false);var E=this._MenuBlock=new FCKMenuBlock();E.Dir=C;E._FCKContextMenu=this;E.Panel=D;E.OnItemClick=FCKContextMenu_MenuBlock_OnItemClick;this._Redraw=true;this.SetMouseClickWindow(B||A);};FCKContextMenu.prototype.SetMouseClickWindow=function(A){if (!FCKBrowserInfo.IsIE){this._Document=A.document;this._Document.addEventListener('contextmenu',FCKContextMenu_Document_OnContextMenu,false);}};FCKContextMenu.prototype.AddItem=function(A,B,C,D){var E=this._MenuBlock.AddItem(A,B,C,D);this._Redraw=true;return E;};FCKContextMenu.prototype.AddSeparator=function(){this._MenuBlock.AddSeparator();this._Redraw=true;};FCKContextMenu.prototype.RemoveAllItems=function(){this._MenuBlock.RemoveAllItems();this._Redraw=true;};FCKContextMenu.prototype.AttachToElement=function(A){A._FCKContextMenu=this;if (FCKBrowserInfo.IsIE) A.oncontextmenu=FCKContextMenu_AttachedElement_OnContextMenu;};function FCKContextMenu_Document_OnContextMenu(e){var el=e.target;while (el){if (el._FCKContextMenu){FCKTools.CancelEvent(e);FCKContextMenu_AttachedElement_OnContextMenu(e,el);};el=el.parentNode;}};function FCKContextMenu_AttachedElement_OnContextMenu(e,el){var oIEEvent;if (!e) oIEEvent=FCKTools.GetElementWindow(this).event;var eTarget=el||(e?e.target:this);var oContextMenu=eTarget._FCKContextMenu;if (oContextMenu.OnBeforeOpen) oContextMenu.OnBeforeOpen.call(oContextMenu,eTarget);if (oContextMenu._Redraw){oContextMenu._MenuBlock.Create(oContextMenu._Panel.MainNode);oContextMenu._Redraw=false;};oContextMenu._Panel.Show(e?e.pageX:oIEEvent.screenX,e?e.pageY:oIEEvent.screenY,e?e.currentTarget:null);return false;};function FCKContextMenu_MenuBlock_OnItemClick(menuBlock,menuItem){var oContextMenu=menuBlock._FCKContextMenu;oContextMenu._Panel.Hide();if (oContextMenu.OnItemClick) oContextMenu.OnItemClick.call(oContextMenu,menuItem);}
meta: 4958	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4958/6b9d6c2501f7b42b27415777c9ca21fcad5d776a/fckeditorcode_ie.js/buggy/ext_scripts/FCKeditor/editor/js/fckeditorcode_ie.js