Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/js
Modified Files:
fck_startup.js fckeditorcode_gecko_1.js
fckeditorcode_gecko_2.js fckeditorcode_ie_1.js
fckeditorcode_ie_2.js
Log Message:
complete fckeditor addition
Index: fck_startup.js
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fck_startup.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fck_startup.js 29 Oct 2004 17:20:16 -0000 1.1
--- fck_startup.js 30 Oct 2004 13:53:13 -0000 1.2
***************
*** 11,16 ****
* This file has been compacted for best loading performance.
*
! * Version: 2.0 Beta 1
! * Created: 2004-06-01 00:25:31
*/
! var FCKBrowserInfo=new Object();var sAgent=navigator.userAgent.toLowerCase();FCKBrowserInfo.IsIE=sAgent.indexOf("msie") != -1;FCKBrowserInfo.IsGecko=! FCKBrowserInfo.IsIE;if (FCKBrowserInfo.IsIE){FCKBrowserInfo.MajorVer=navigator.appVersion.match(/MSIE (.)/)[1];FCKBrowserInfo.MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1];}else{FCKBrowserInfo.MajorVer=0;FCKBrowserInfo.MinorVer=0;};FCKBrowserInfo.IsIE55OrMore=FCKBrowserInfo.IsIE && (FCKBrowserInfo.MajorVer > 5 || FCKBrowserInfo.MinorVer >=5);var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(scriptPath){FCKScriptLoader.Queue[ FCKScriptLoader.Queue.length ]=scriptPath;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length > 0){this.IsLoading=true;var sScriptPath=this.Queue[0];var oTempArray=new Array();for (i=1 ; i < this.Queue.length ; i++) oTempArray[ i - 1 ]=this.Queue[ i ];this.Queue=oTempArray;var e;if (sScriptPath.lastIndexOf( '.css' ) > 0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild( e);var oEvent=function(){if (this.tagName=='LINK' || !this.readyState || this.readyState == 'loaded') FCKScriptLoader.CheckQueue();};if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=oEvent;else FCKScriptLoader.CheckQueue();e.href=sScriptPath;}else{e.onload=e.onreadystatechange=oEvent;e.src=sScriptPath;};}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};};var FCKConfig=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi, '/');FCKConfig.BasePath='file://' + FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.LoadHiddenField=function(){var oConfigField=window.parent.document.getElementById(FCK.Name + '___Config');if (! oConfigField) return;var aCouples=oConfigField.value.split('&');for (var i=0 ; i < aCouples.length ; i++){var aConfig=aCouples[i].split('=');var sConfigName=aConfig[0];var sConfigValue=aConfig[1];if (sConfigValue=="true") FCKConfig[sConfigName]=true;else if (sConfigValue=="false") FCKConfig[sConfigName]=false;else if (! isNaN(sConfigValue)) FCKConfig[sConfigName]=parseInt(sConfigValue);else FCKConfig[sConfigName]=sConfigValue;};};window.document.oncontextmenu=function(e){if (e) e.preventDefault();return false;};if (! FCKBrowserInfo.IsIE){window.onresize=function(){var oFrame=document.getElementById("eEditorArea");oFrame.height=0;var oCell=document.getElementById("eWysiwygCell");var iHeight=oCell.offsetHeight;oFrame.height=iHeight - 2;};};window.onload=function(){FCKScriptLoader.OnEmpty=function(){FCKConfig.LoadHiddenField();LoadStyles();};FCKScriptLoader.AddScript('../fckconfig.js');};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=function(){this.OnEmpty=null;window.document.dir=FCKLang.Dir;FCK.StartEditor();};if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (i=0 ; i < aParams.length ; i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[ sParamName ]=sParamValue;};FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1;var FCK=new Object();FCK.Name=FCKURLParams[ 'InstanceName' ];FCK.LinkedField=window.parent.document.getElementById(FCK.Name);FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.PasteEnabled=false;var FCKeditorAPI;if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.0 Beta 1';FCKeditorAPI.GetInstance=function(instanceName){return this.__Instances[ instanceName ];};}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[ FCK.Name ]=FCK;
\ No newline at end of file
--- 11,23 ----
* This file has been compacted for best loading performance.
*
! * Version: 2.0 Beta 2
! * Created: 2004-09-10 02:40:05
*/
! var FCKBrowserInfo=new Object();var sAgent=navigator.userAgent.toLowerCase();FCKBrowserInfo.IsIE=sAgent.indexOf("msie") != -1;FCKBrowserInfo.IsGecko=! FCKBrowserInfo.IsIE;if (FCKBrowserInfo.IsIE){FCKBrowserInfo.MajorVer=navigator.appVersion.match(/MSIE (.)/)[1];FCKBrowserInfo.MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1];}else{FCKBrowserInfo.MajorVer=0;FCKBrowserInfo.MinorVer=0;};FCKBrowserInfo.IsIE55OrMore=FCKBrowserInfo.IsIE && (FCKBrowserInfo.MajorVer > 5 || FCKBrowserInfo.MinorVer >=5);
! var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(scriptPath){FCKScriptLoader.Queue[ FCKScriptLoader.Queue.length ]=scriptPath;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length > 0){this.IsLoading=true;var sScriptPath=this.Queue[0];var oTempArray=new Array();for (i=1 ; i < this.Queue.length ; i++) oTempArray[ i - 1 ]=this.Queue[ i ];this.Queue=oTempArray;var e;if (sScriptPath.lastIndexOf( '.css' ) > 0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild( e);var oEvent=function(){if (this.tagName=='LINK' || !this.readyState || this.readyState == 'loaded') FCKScriptLoader.CheckQueue();};if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=oEvent;else FCKScriptLoader.CheckQueue();e.href=sScriptPath;}else{e.onload=e.onreadystatechange=oEvent;e.src=sScriptPath;};}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};}
! var FCKConfig=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi, '/');FCKConfig.BasePath='file://' + FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.LoadHiddenField=function(){var oConfigField=window.parent.document.getElementById(FCK.Name + '___Config');if (! oConfigField) return;var aCouples=oConfigField.value.split('&');for (var i=0 ; i < aCouples.length ; i++){var aConfig=aCouples[i].split('=');var sConfigName=aConfig[0];var sConfigValue=aConfig[1];if (sConfigValue=="true") FCKConfig[sConfigName]=true;else if (sConfigValue=="false") FCKConfig[sConfigName]=false;else if (! isNaN(sConfigValue)) FCKConfig[sConfigName]=parseInt(sConfigValue);else FCKConfig[sConfigName]=sConfigValue;};}
! window.document.oncontextmenu=function(e){if (e) e.preventDefault();return false;};if (! FCKBrowserInfo.IsIE){window.onresize=function(){var oFrame=document.getElementById("eEditorArea");oFrame.height=0;var oCell=document.getElementById("eWysiwygCell");var iHeight=oCell.offsetHeight;oFrame.height=iHeight - 2;};};window.onload=function(){FCKScriptLoader.OnEmpty=function(){FCKConfig.LoadHiddenField();LoadStyles();};FCKScriptLoader.AddScript('../fckconfig.js');};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=null;if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};function LoadLanguageFile(){FCKScriptLoader.OnEmpty=function(){this.OnEmpty=null;window.document.dir=FCKLang.Dir;FCK.StartEditor();};FCKScriptLoader.AddScript('lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js');}
! var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (i=0 ; i < aParams.length ; i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[ sParamName ]=sParamValue;}
! FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1;
! var FCK=new Object();FCK.Name=FCKURLParams[ 'InstanceName' ];FCK.LinkedField=window.parent.document.getElementById(FCK.Name);FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.PasteEnabled=false;
! var FCKeditorAPI;if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.0 Beta 2';FCKeditorAPI.GetInstance=function(instanceName){return this.__Instances[ instanceName ];};}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[ FCK.Name ]=FCK;
Index: fckeditorcode_gecko_1.js
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fckeditorcode_gecko_1.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fckeditorcode_gecko_1.js 29 Oct 2004 17:20:16 -0000 1.1
--- fckeditorcode_gecko_1.js 30 Oct 2004 13:53:13 -0000 1.2
***************
*** 11,16 ****
* This file has been compacted for best loading performance.
*
! * Version: 2.0 Beta 1
! * Created: 2004-06-01 00:25:31
*/
! var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message, color){if (! FCKConfig.Debug) return;if (message !=null && isNaN( message )){message=message.replace(/</g, "<");};if (!this.DebugWindow || this.DebugWindow.closed){this.DebugWindow=window.open('fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500', true);};if (this.DebugWindow.Output){this.DebugWindow.Output(message, color);};};}else{FCKDebug.Output=function() {};};var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit", functionPointer);else oForm.addEventListener('submit', functionPointer, true);if (! oForm.updateFCKEditor) oForm.updateFCKEditor=new Array();oForm.updateFCKEditor[oForm.updateFCKEditor.length]=functionPointer;if (! oForm.originalSubmit){oForm.originalSubmit=oForm.submit;oForm.submit=function(){if (this.updateFCKEditor){for (var i=0 ; i < this.updateFCKEditor.length ; i++) this.updateFCKEditor[i]();};this.originalSubmit();};};};FCKTools.AddSelectOption=function(targetDocument, selectElement, optionText, optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length - 1 ; i >=0 ; i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement, value, defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0 ; i < selectElement.options.length ; i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue !=null ) FCKTools.SelectNoCase( selectElement, defaultValue);};FCKTools.HTMLEncode=function(text){text=text.replace(/&/g, "&");text=text.replace(/"/g, """);text=text.replace(/</g, "<");text=text.replace(/>/g, ">");text=text.replace(/'/g, "’");return text;};FCKTools.GetResultingArray=function(arraySource, separator){switch (typeof( arraySource )){case "string" : return arraySource.split(separator);case "function" : return separator();default : if (isArray( arraySource )) return arraySource;else return new Array();};};FCKTools.AppendStyleSheet=function(documentElement, cssFileUrl){var e=documentElement.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=cssFileUrl;documentElement.getElementsByTagName("HEAD").item(0).appendChild( e);};FCKTools.ClearElementAttributes=function(element){for (var i=0 ; i < element.attributes.length ; i++){element.removeAttribute(element.attributes[i].name, 0);};};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();var fGetIds=function(parent){for (var i=0 ; i < parent.childNodes.length ; i++){var sId=parent.childNodes[i].id;if (sId && sId.length > 0) aIds[ aIds.length ]=sId;fGetIds(parent.childNodes[i]);};};fGetIds(parentElement);return aIds;};var FCKLanguageManager=new Object();FCKLanguageManager.AvailableLanguages={'ar' : 'Arabic', 'en' : 'English', 'it' : 'Italian'};FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang=navigator.language ? navigator.language.toLowerCase() : navigator.userLanguage.toLowerCase();FCKDebug.Output('Navigator Language = ' + sUserLang);if (sUserLang.length >=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length >=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return FCKConfig.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument, tag, propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0 ; i < aInputs.length ; i++){if (aInputs[i].attributes['fckLang']){var s=FCKLang[ aInputs[i].attributes["fckLang"].value ];eval('aInputs[i].' + propertyToSet + ' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument, 'INPUT', 'value');this.TranslateElements(targetDocument, 'SPAN', 'innerHTML');this.TranslateElements(targetDocument, 'OPTION', 'innerHTML');};FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[ FCKLanguageManager.ActiveLanguage.Code ];FCK.Language=FCKLanguageManager;FCKScriptLoader.AddScript('lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js');var FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName, functionPointer, params){if (! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ]=new Array();this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName, params){var bReturnValue=true;FCKDebug.Output('Firing event: ' + eventName, 'Fuchsia');var oCalls=this.RegisteredEvents[ eventName ];if (oCalls){for (i in oCalls){if (typeof( oCalls[ i ] )=="function"){bReturnValue=(bReturnValue && oCalls[ i ]( params ));}else{bReturnValue=(bReturnValue && eval( oCalls[ i ] ));};};};return bReturnValue;};var FCKXHtml=new Object();FCKXHtml.GetXHTML=function(node){if (window.ActiveXObject) this.XML=new ActiveXObject('Msxml2.DOMDocument');else{this.XML=document.implementation.createDocument('', '', null);Node.prototype.__defineGetter__('xml', FCKXHtml._Node_getXML);};this.MainNode=this.XML.appendChild(this.XML.createElement( 'XHTML' ));this._AppendChildNodes(this.MainNode, node);var sXHTML=this.MainNode.xml;return sXHTML.substr(7, sXHTML.length - 15);};FCKXHtml._Node_getXML=function(){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(this);};FCKXHtml._AppendAttribute=function(xmlNode, attributeName, attributeValue){var oXmlAtt=this.XML.createAttribute(attributeName);if (typeof( attributeValue )=='boolean' && attributeValue == true) oXmlAtt.value=attributeName;else oXmlAtt.value=attributeValue;xmlNode.attributes.setNamedItem(oXmlAtt);};FCKXHtml._AppendChildNodes=function(xmlNode, htmlNode){var oChildren=htmlNode.childNodes;var i=0;while (i < oChildren.length){i +=this._AppendNode(xmlNode, oChildren[i]);};};FCKXHtml._AppendNode=function(xmlNode, htmlNode){var iAddedNodes=1;switch (htmlNode.nodeType){case 1 : var sNodeName=htmlNode.nodeName.toLowerCase();var oNode=xmlNode.appendChild(this.XML.createElement( sNodeName ));var oAttributes=htmlNode.attributes;for (var n=0 ; n < oAttributes.length ; n++){var oAttribute=oAttributes[n];if (oAttribute.specified) this._AppendAttribute(oNode, oAttribute.nodeName.toLowerCase(), oAttribute.nodeValue);};switch (sNodeName){case "script" : case "style" : oNode.appendChild(this.XML.createCDATASection( htmlNode.text ));break;case "abbr" : if (document.all){var oNextNode=htmlNode.nextSibling;while (true){iAddedNodes++;if (oNextNode && oNextNode.nodeName !='/ABBR'){this._AppendNode(oNode, oNextNode);oNextNode=oNextNode.nextSibling;}else break;};break;};case "area" : if (document.all && ! oNode.attributes.getNamedItem( 'coords' )){var sCoords=htmlNode.getAttribute('coords', 2);if (sCoords && sCoords !='0,0,0') this._AppendAttribute(oNode, 'coords', sCoords);};case "img" : if (! oNode.attributes.getNamedItem( 'alt' )) this._AppendAttribute(oNode, 'alt', '');default : this._AppendChildNodes(oNode, htmlNode);break;};break;case 3 : xmlNode.appendChild(this.XML.createTextNode( htmlNode.nodeValue ));break;default : xmlNode.appendChild(this.XML.createComment( "Element not supported - Type: " + htmlNode.nodeType + " Name: " + htmlNode.nodeName ));break;};return iAddedNodes;};FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckedito
rcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange', newStatus);if (this.OnStatusChange ) this.OnStatusChange( newStatus);};FCK.SetHTML=function(html, forceWYSIWYG){if (forceWYSIWYG || FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="off";this.EditorDocument.body.innerHTML=html;if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="on";}else document.getElementById('eSourceField').value = html;};FCK.GetHTML=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) return this.EditorDocument.body.innerHTML;else return document.getElementById('eSourceField').value;};FCK.GetXHTML=function(){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body);if (bSource) this.SwitchEditMode();return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML());else FCKTools.SetLinkedFieldValue(FCK.GetHTML());};FCK.Focus=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) FCK.EditorDocument.body.focus();else document.getElementById('eSource').focus();};FCK.ShowContextMenu=function(x, y){if (this.Status !=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x, y);this.Events.FireEvent("OnContextMenu");};FCK.Description="FCKeditor for Gecko Browsers";FCK.StartEditor=function(){this.EditorWindow=window.frames[ 'eEditorArea' ];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);var oOnContextMenu=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX, e.clientY);};this.EditorDocument.addEventListener('contextmenu', oOnContextMenu, true);var oOnKeyDown=function(e){if (e.ctrlKey && !e.shiftKey && !e.altKey){if (e.which==86 || e.which==118){if (FCK.Status==FCK_STATUS_COMPLETE){if (!FCK.Events.FireEvent( "OnPaste" )) e.preventDefault();}else e.preventDefault();};};};this.EditorDocument.addEventListener('keydown', oOnKeyDown, true);var oOnSelectionChange=function(e){FCK.Events.FireEvent("OnSelectionChange");};this.EditorDocument.addEventListener('mouseup', oOnSelectionChange, false);this.EditorDocument.addEventListener('keyup', oOnSelectionChange, false);this.EditorDocument.designMode="on";this.SetStatus(FCK_STATUS_ACTIVE);};
\ No newline at end of file
--- 11,23 ----
* This file has been compacted for best loading performance.
*
! * Version: 2.0 Beta 2
! * Created: 2004-09-10 02:40:05
*/
! var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message, color){if (! FCKConfig.Debug) return;if (message !=null && isNaN( message )){message=message.replace(/</g, "<");};if (!this.DebugWindow || this.DebugWindow.closed){this.DebugWindow=window.open('fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500', true);};if (this.DebugWindow.Output){this.DebugWindow.Output(message, color);};};}else{FCKDebug.Output=function() {};};
! var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit", functionPointer);else oForm.addEventListener('submit', functionPointer, true);if (! oForm.updateFCKEditor) oForm.updateFCKEditor=new Array();oForm.updateFCKEditor[oForm.updateFCKEditor.length]=functionPointer;if (! oForm.originalSubmit){oForm.originalSubmit=oForm.submit;oForm.submit=function(){if (this.updateFCKEditor){for (var i=0 ; i < this.updateFCKEditor.length ; i++) this.updateFCKEditor[i]();};this.originalSubmit();};};};FCKTools.AddSelectOption=function(targetDocument, selectElement, optionText, optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length - 1 ; i >=0 ; i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement, value, defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0 ; i < selectElement.options.length ; i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue !=null ) FCKTools.SelectNoCase( selectElement, defaultValue);};FCKTools.HTMLEncode=function(text){text=text.replace(/&/g, "&");text=text.replace(/"/g, """);text=text.replace(/</g, "<");text=text.replace(/>/g, ">");text=text.replace(/'/g, "’");return text;};FCKTools.GetResultingArray=function(arraySource, separator){switch (typeof( arraySource )){case "string" : return arraySource.split(separator);case "function" : return separator();default : if (isArray( arraySource )) return arraySource;else return new Array();};};FCKTools.GetElementPosition=function(el){var c={ X:0, Y:0 };while (el){c.X +=el.offsetLeft;c.Y +=el.offsetTop;el=el.offsetParent;};return c;};FCKTools.GetElementAscensor=function(element, ascensorTagName){var e=element.parentNode;while (e){if (e.nodeName==ascensorTagName) return e;e=e.parentNode;};};
! FCKTools.AppendStyleSheet=function(documentElement, cssFileUrl){var e=documentElement.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=cssFileUrl;documentElement.getElementsByTagName("HEAD").item(0).appendChild( e);};FCKTools.ClearElementAttributes=function(element){for (var i=0 ; i < element.attributes.length ; i++){element.removeAttribute(element.attributes[i].name, 0);};};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();var fGetIds=function(parent){for (var i=0 ; i < parent.childNodes.length ; i++){var sId=parent.childNodes[i].id;if (sId && sId.length > 0) aIds[ aIds.length ]=sId;fGetIds(parent.childNodes[i]);};};fGetIds(parentElement);return aIds;}
! var FCKLanguageManager=new Object();FCKLanguageManager.AvailableLanguages={'ar' : 'Arabic', 'en' : 'English', 'it' : 'Italian'};FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang=navigator.language ? navigator.language.toLowerCase() : navigator.userLanguage.toLowerCase();FCKDebug.Output('Navigator Language = ' + sUserLang);if (sUserLang.length >=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length >=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return FCKConfig.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument, tag, propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0 ; i < aInputs.length ; i++){if (aInputs[i].attributes['fckLang']){var s=FCKLang[ aInputs[i].attributes["fckLang"].value ];eval('aInputs[i].' + propertyToSet + ' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument, 'INPUT', 'value');this.TranslateElements(targetDocument, 'SPAN', 'innerHTML');this.TranslateElements(targetDocument, 'OPTION', 'innerHTML');};FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[ FCKLanguageManager.ActiveLanguage.Code ];FCK.Language=FCKLanguageManager;LoadLanguageFile();
! var FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName, functionPointer, params){if (! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ]=new Array();this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName, params){var bReturnValue=true;FCKDebug.Output('Firing event: ' + eventName, 'Fuchsia');var oCalls=this.RegisteredEvents[ eventName ];if (oCalls){for (i in oCalls){if (typeof( oCalls[ i ] )=="function"){bReturnValue=(bReturnValue && oCalls[ i ]( params ));}else{bReturnValue=(bReturnValue && eval( oCalls[ i ] ));};};};return bReturnValue;};
! var FCKXHtml=new Object();FCKXHtml.GetXHTML=function(node){if (window.ActiveXObject) this.XML=new ActiveXObject('Msxml2.DOMDocument');else this.XML=document.implementation.createDocument('', '', null);this.MainNode=this.XML.appendChild(this.XML.createElement( 'XHTML' ));this._AppendChildNodes(this.MainNode, node);var sXHTML=document.all ? this.MainNode.xml : FCKXHtml._GetGeckoNodeXml(this.MainNode);return sXHTML.substr(7, sXHTML.length - 15);};FCKXHtml._GetGeckoNodeXml=function(node){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(node);};FCKXHtml._AppendAttribute=function(xmlNode, attributeName, attributeValue){if (attributeName=='_moz_dirty') return;var oXmlAtt=this.XML.createAttribute(attributeName);if (typeof( attributeValue )=='boolean' && attributeValue == true) oXmlAtt.value=attributeName;else oXmlAtt.value=attributeValue;xmlNode.attributes.setNamedItem(oXmlAtt);};FCKXHtml._AppendChildNodes=function(xmlNode, htmlNode){var oChildren=htmlNode.childNodes;var i=0;while (i < oChildren.length){i +=this._AppendNode(xmlNode, oChildren[i]);};};FCKXHtml._AppendNode=function(xmlNode, htmlNode){var iAddedNodes=1;switch (htmlNode.nodeType){case 1 : var sNodeName=htmlNode.nodeName.toLowerCase();var oNode=xmlNode.appendChild(this.XML.createElement( sNodeName ));var oAttributes=htmlNode.attributes;for (var n=0 ; n < oAttributes.length ; n++){var oAttribute=oAttributes[n];if (oAttribute.specified){var sAttName=oAttribute.nodeName.toLowerCase();var sAttValue=oAttribute.nodeValue;if (sAttName=='style' && document.all) sAttValue=htmlNode.style.cssText;this._AppendAttribute(oNode, sAttName, sAttValue);};};switch (sNodeName){case "script" : case "style" : oNode.appendChild(this.XML.createCDATASection( htmlNode.text ));break;case "abbr" : if (document.all){var oNextNode=htmlNode.nextSibling;while (true){iAddedNodes++;if (oNextNode && oNextNode.nodeName !='/ABBR'){this._AppendNode(oNode, oNextNode);oNextNode=oNextNode.nextSibling;}else break;};break;};case "area" : if (document.all && ! oNode.attributes.getNamedItem( 'coords' )){var sCoords=htmlNode.getAttribute('coords', 2);if (sCoords && sCoords !='0,0,0') this._AppendAttribute(oNode, 'coords', sCoords);};case "img" : if (! oNode.attributes.getNamedItem( 'alt' )) this._AppendAttribute(oNode, 'alt', '');default : this._AppendChildNodes(oNode, htmlNode);break;};break;case 3 : xmlNode.appendChild(this.XML.createTextNode( htmlNode.nodeValue ));break;default : xmlNode.appendChild(this.XML.createComment( "Element not supported - Type: " + htmlNode.nodeType + " Name: " + htmlNode.nodeName ));break;};return iAddedNodes;};
! FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange', newStatus);if (this.OnStatusChange ) this.OnStatusChange( newStatus);};FCK.SetHTML=function(html, forceWYSIWYG){if (forceWYSIWYG || FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="off";this.EditorDocument.body.innerHTML=html;if (FCKBrowserInfo.IsGecko){FCK.EditorDocument.designMode="on";FCK.EditorDocument.execCommand("useCSS", false, !FCKConfig.GeckoUseSPAN);};}else document.getElementById('eSourceField').value = html;};FCK.GetHTML=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) return this.EditorDocument.body.innerHTML;else return document.getElementById('eSourceField').value;};FCK.GetXHTML=function(){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body);if (bSource) this.SwitchEditMode();return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML());else FCKTools.SetLinkedFieldValue(FCK.GetHTML());};FCK.ShowContextMenu=function(x, y){if (this.Status !=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x, y);this.Events.FireEvent("OnContextMenu");};
! FCK.Description="FCKeditor for Gecko Browsers";FCK.StartEditor=function(){this.EditorWindow=window.frames[ 'eEditorArea' ];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);var oOnContextMenu=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX, e.clientY);};this.EditorDocument.addEventListener('contextmenu', oOnContextMenu, true);var oOnKeyDown=function(e){if (e.ctrlKey && !e.shiftKey && !e.altKey){if (e.which==86 || e.which==118){if (FCK.Status==FCK_STATUS_COMPLETE){if (!FCK.Events.FireEvent( "OnPaste" )) e.preventDefault();}else e.preventDefault();};};};this.EditorDocument.addEventListener('keydown', oOnKeyDown, true);var oOnSelectionChange=function(e){FCK.Events.FireEvent("OnSelectionChange");};this.EditorDocument.addEventListener('mouseup', oOnSelectionChange, false);this.EditorDocument.addEventListener('keyup', oOnSelectionChange, false);this.SetStatus(FCK_STATUS_ACTIVE);};FCK.Focus=function(){this.EditorWindow.focus();};
Index: fckeditorcode_gecko_2.js
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fckeditorcode_gecko_2.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fckeditorcode_gecko_2.js 29 Oct 2004 17:20:16 -0000 1.1
--- fckeditorcode_gecko_2.js 30 Oct 2004 13:53:13 -0000 1.2
***************
*** 11,16 ****
* This file has been compacted for best loading performance.
*
! * Version: 2.0 Beta 1
! * Created: 2004-06-01 00:25:33
*/
! FCK.ExecuteNamedCommand=function(commandName, commandParameter){this.EditorDocument.execCommand(commandName, false, commandParameter);this.Events.FireEvent('OnSelectionChange');};FCK.GetNamedCommandState=function(commandName){try{if (!FCK.EditorDocument.queryCommandEnabled( commandName )) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(commandName) ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(commandName){var sValue='';var eState=FCK.GetNamedCommandState(commandName);if (eState==FCK_TRISTATE_DISABLED) return null;try{sValue=this.EditorDocument.queryCommandValue(commandName);}catch(e) {};return sValue ? sValue : '';};FCK.CreateLink=function(url){if (url.length==0) this.ExecuteNamedCommand('Unlink');else{this.ExecuteNamedCommand('CreateLink', "javascript:void(0);/*fckeditortemplink*/");var oLinks=this.EditorDocument.links;for (i=0 ; i < oLinks.length ; i++){if (oLinks[i].href=="javascript:void(0);/*fckeditortemplink*/"){oLinks[i].href=url;return oLinks[i];};};};};FCK.CleanAndPaste=function(html){html=html.replace(/<\/?SPAN[^>]*>/gi, "");html=html.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");html=html.replace(/<(\w[^>]*) style="([^"]*)"([^>]*)/gi, "<$1$3");html=html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");html=html.replace(/<\\?\?xml[^>]*>/gi, "");html=html.replace(/<\/?\w+:[^>]*>/gi, "");html=html.replace(/ /, " ");var re=new RegExp("(<P)([^>]*>.*?)(<\/P>)","gi");html=html.replace(re, "<div$2</div>");this.InsertHtml(html);};FCK.Preview=function(){var oWindow=window.open('', null, 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');oWindow.document.write(FCK.GetHTML());oWindow.document.close();};FCK.SwitchEditMode=function(){var bWYSIWYG=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display = bWYSIWYG ? "none" : "";document.getElementById('eSource').style.display = bWYSIWYG ? "" : "none";if (bWYSIWYG) document.getElementById('eSourceField').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML() : FCK.GetHTML());else FCK.SetHTML(FCK.GetHTML(), true);FCK.EditMode=bWYSIWYG ? FCK_EDITMODE_SOURCE : FCK_EDITMODE_WYSIWYG;FCK.Focus();FCKToolbarSet.RefreshItemsState();};FCK._BaseGetNamedCommandState=FCK.GetNamedCommandState;FCK.GetNamedCommandState=function(commandName){switch (commandName){case 'Unlink' : return FCKSelection.HasAncestorNode('A') ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED;default : return FCK._BaseGetNamedCommandState(commandName);};};FCK._BaseExecuteNamedCommand=FCK.ExecuteNamedCommand;FCK.ExecuteNamedCommand=function(commandName, commandParameter){switch (commandName){case 'Print' : FCK.EditorWindow.print();default : FCK._BaseExecuteNamedCommand(commandName, commandParameter);};};FCK.Focus=function(){this.EditorWindow.focus();};FCK.AttachToOnSelectionChange=function(functionPointer){this.Events.AttachEvent('OnSelectionChange', functionPointer);};FCK.Paste=function(){FCKDebug.Output('FCK.Paste');if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else if (FCKConfig.AutoDetectPasteFromWord && FCKBrowserInfo.IsIE55OrMore){var sHTML=FCK.GetClipboardHTML();var re=/<\w[^>]* class="?MsoNormal"?/gi;if (re.test( sHTML )){if (confirm( FCKLang["PasteWordConfirm"] )){FCK.CleanAndPaste(sHTML);return false;};};}else return true;};FCK.InsertHtml=function(html){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);var oFragment=oRange.createContextualFragment(html);var oLastNode=oFragment.lastChild;oRange.insertNode(oFragment);oRange.setEndAfter(oLastNode);oRange.setStartAfter(oLastNode);oSel.removeAllRanges();oSel=FCK.EditorWindow.getSelection();oSel.addRange(oRange);this.Focus();};FCK.InsertElement=function(element){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);oRange.insertNode(element);oRange.setEndAfter(element);oRange.setStartAfter(element);this.Focus();};FCK.PasteAsPlainText=function(){};FCK.GetClipboardHTML=function(){return '';};var FCKSelection=new Object();FCK.Selection=FCKSelection;FCKSelection.GetSelectedElement=function(){var oSel=FCK.EditorWindow.getSelection();if (oSel.rangeCount==1){var oRange=oSel.getRangeAt(0);if (oRange.startContainer==oRange.endContainer && (oRange.endOffset - oRange.startOffset)==1) return oSel.anchorNode.childNodes[ oSel.anchorOffset ];};};FCKSelection.MoveToNode=function(node){var oSel=FCK.EditorWindow.getSelection();for (i=oSel.rangeCount - 1 ; i >=0 ; i--){if (i==0){oSel.getRangeAt(i).selectNodeContents( node);}else{oSel.removeRange(oSel.getRangeAt(i));};};};FCKSelection.HasAncestorNode=function(nodeTagName){var oContainer=this.GetSelectedElement();if (! oContainer && FCK.EditorWindow){try { oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer ; }catch(e){};};while (oContainer){if (oContainer.tagName==nodeTagName) return true;oContainer=oContainer.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(nodeTagName){var oNode;var oContainer=this.GetSelectedElement();if (! oContainer){oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;};while (oContainer){if (oContainer.tagName==nodeTagName) return oContainer;oContainer=oContainer.parentNode;};};FCKSelection.Delete=function(){var oSel=FCK.EditorWindow.getSelection();for (var i=0 ; i < oSel.rangeCount ; i++){oSel.getRangeAt(i).deleteContents();};return oSel;};var FCKNamedCommand=function(commandName){this.Name=commandName;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);};var FCKDialogCommand=function(name, title, url, width, height, getStateFunction, getStateParam){this.Name=name;this.Title=title;this.Url=url;this.Width=width;this.Height=height;this.GetStateFunction=getStateFunction;this.GetStateParam=getStateParam;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction){return this.GetStateFunction(this.GetStateParam);}else{return FCK_TRISTATE_OFF;};};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert('Undefined command');};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(fontName){if (fontName==null || fontName==""){}else{FCK.ExecuteNamedCommand('FontName', fontName);};};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(fontSize){if (typeof( fontSize )=='string' ) fontSize = parseInt(fontSize);if (fontSize==null || fontSize==''){FCK.ExecuteNamedCommand('FontSize', 3);}else{FCK.ExecuteNamedCommand('FontSize', fontSize);};};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(formatName){if (formatName==null || formatName==''){FCK.ExecuteNamedCommand('FormatBlock', '<P>');}else{FCK.ExecuteNamedCommand('FormatBlock', formatName);};};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var oForm=FCK.LinkedField.form;oForm.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCK.SetHTML('');};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name="Source";};FCKSourceComm
and.prototype.Execute=function(){FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG ? FCK_TRISTATE_OFF : FCK_TRISTATE_ON);};var FCKCommands=new Object();var sNamedCommands=[ 'Cut','Copy','Paste','Print','Find','SelectAll','RemoveFormat','Unlink','Undo','Redo', 'Bold','Italic','Underline','StrikeThrough','Subscript','Superscript', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Outdent','Indent', 'InsertOrderedList','InsertUnorderedList','InsertHorizontalRule'];for (i=0 ; i < sNamedCommands.length ; i++){FCKCommands[ sNamedCommands[i] ]=new FCKNamedCommand(sNamedCommands[i]);};FCKCommands['Link'] = new FCKDialogCommand( 'Link' , FCKLang.DlgLnkWindowTitle, 'dialog/fck_link.html' , 400, 330, FCK.GetNamedCommandState, 'CreateLink' );FCKCommands['About'] = new FCKDialogCommand( 'About' , FCKLang.About, 'dialog/fck_about.html' , 400, 330 );FCKCommands['Image'] = new FCKDialogCommand( 'Image' , 'Image Properties', 'dialog/fck_image.html' , 450, 400, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['Table'] = new FCKDialogCommand( 'Table' , 'Table Properties', 'dialog/fck_table.html' , 400, 250 );FCKCommands['TableProp'] = new FCKDialogCommand( 'Table' , 'Table Properties', 'dialog/fck_table.html?Parent', 400, 250 );FCKCommands['SpecialChar'] = new FCKDialogCommand( 'SpecialChar' , 'Select Character', 'dialog/fck_specialchar.html' , 400, 300, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['Smiley'] = new FCKDialogCommand( 'Smiley' , FCKLang.DlgSmileyTitle, 'dialog/fck_smiley.html' , FCKConfig.SmileyWindowWidth, FCKConfig.SmileyWindowHeight, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['FontName'] = new FCKFontNameCommand();FCKCommands['FontSize'] = new FCKFontSizeCommand();FCKCommands['FontFormat'] = new FCKFormatBlockCommand();FCKCommands['Source'] = new FCKSourceCommand();FCKCommands['Preview'] = new FCKPreviewCommand();FCKCommands['Save'] = new FCKSaveCommand();FCKCommands['NewPage'] = new FCKNewPageCommand();FCKCommands['Undefined'] = new FCKUndefinedCommand();var FCKToolbarButton=function(commandName, label, tooltip, style, sourceView){this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.Tooltip=tooltip ? tooltip : (label ? label : commandName);this.Style=style ? style : FCK_TOOLBARITEM_ONLYICON;this.SourceView=sourceView ? true : false;this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;this.DOMDiv.onmouseover=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED){this.className='TB_Button_On';};};this.DOMDiv.onmouseout=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED && this.FCKToolbarButton.State !=FCK_TRISTATE_ON){this.className='TB_Button_Off';};};this.DOMDiv.onclick=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED) this.FCKToolbarButton.Command.Execute();return false;};var sClass;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON : sClass='TB_ButtonType_Icon';break;case FCK_TOOLBARITEM_ONLYTEXT : sClass='TB_ButtonType_Text';break;case FCK_TOOLBARITEM_ICONTEXT : sClass='';break;};this.DOMDiv.innerHTML='<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on"></td>' + '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '</tr>' + '</table>';var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var eState;if (FCK.EditMode==FCK_EDITMODE_SOURCE && ! this.SourceView) eState=FCK_TRISTATE_DISABLED;else eState=this.Command.GetState();if (eState==this.State) return;this.State=eState;switch (this.State){case FCK_TRISTATE_ON : this.DOMDiv.className='TB_Button_On';break;case FCK_TRISTATE_OFF : this.DOMDiv.className='TB_Button_Off';break;default : this.DOMDiv.className='TB_Button_Disabled';break;};};var FCKToolbarCombo=function(commandName, label, itemsValues, itemsNames, tooltip, style, firstIsBlank, itemsSeparator, sourceView){this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.Tooltip=tooltip ? tooltip : (label ? label : commandName);this.Style=style ? style : FCK_TOOLBARITEM_ICONTEXT;this.SourceView=sourceView ? true : false;this.State=FCK_UNKNOWN;this.ItemsValues=itemsValues;this.ItemsNames=itemsNames ? itemsNames : itemsValues;this.ItemsSeparator=itemsSeparator ? itemsSeparator : ';';this.FirstIsBlank=firstIsBlank !=null ? firstIsBlank : true;};FCKToolbarCombo.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Combo_Off';var sClass;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON : sClass='TB_ButtonType_Icon';break;case FCK_TOOLBARITEM_ONLYTEXT : sClass='TB_ButtonType_Text';break;case FCK_TOOLBARITEM_ICONTEXT : sClass='';break;};this.DOMDiv.innerHTML='<table class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + '<td class="TB_Text" unselectable="on" nowrap>' + this.Label + '</td>' + '<td unselectable="on"><select title="' + this.Tooltip + '"></select></td>' + '</tr>' + '</table>';this.SelectElement=this.DOMDiv.firstChild.firstChild.firstChild.childNodes.item(1).firstChild;this.SelectElement.FCKToolbarCombo=this;this.SelectElement.onchange=function(){this.FCKToolbarCombo.Command.Execute(this.value);return false;};var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshItems();this.RefreshState();};FCKToolbarCombo.prototype.RefreshItems=function(){var aNames=FCKTools.GetResultingArray(this.ItemsNames, this.ItemsSeparator);var aValues=FCKTools.GetResultingArray(this.ItemsValues, this.ItemsSeparator);FCKTools.RemoveAllSelectOptions(this.SelectElement);if (this.FirstIsBlank) FCKTools.AddSelectOption(document, this.SelectElement, '', '');for (var i=0 ; i < aValues.length ; i++){FCKTools.AddSelectOption(document, this.SelectElement, aNames[i], aValues[i]);};};FCKToolbarCombo.prototype.RefreshState=function(){var eState;if (FCK.EditMode==FCK_EDITMODE_SOURCE && ! this.SourceView){eState=FCK_TRISTATE_DISABLED;this.SelectElement.value='';}else{var sValue=this.Command.GetState();FCKTools.SelectNoCase(this.SelectElement, sValue ? sValue : '', '');eState=sValue==null ? FCK_TRISTATE_DISABLED : FCK_TRISTATE_ON;};if (eState==this.State) return;this.State=eState;this.DOMDiv.className=(eState==FCK_TRISTATE_ON ? 'TB_Combo_Off' : 'TB_Combo_Disabled');this.SelectElement.disabled=(eState==FCK_TRISTATE_DISABLED);};var FCKToolbarItems=new Object();FCKToolbarItems['Source'] = new FCKToolbarButton( 'Source', 'Source', null, FCK_TOOLBARITEM_ICONTEXT, true );FCKToolbarItems['Save'] = new FCKToolbarButton( 'Save', null, null, null, true );FCKToolbarItems['NewPage'] = new FCKToolbarButton( 'NewPage', null, null, null, true );FCKToolbarItems['Preview'] = new FCKToolbarButton( 'Preview', null, null, null, true );FCKToolbarItems['About'] = new FCKToolbarButton( 'About', FCKLang.About );FCKToolbarItems['Cut'] = new FCKToolbarButton( 'Cut', FCKLang.Cut, null, null, true );FCKToolbarItems['Copy'] = new FCKToolbarButton( 'Copy', FCKLang.Copy, null, null, true );FCKToolbarItems['Paste'] = new FCKToolbarButton( 'Paste', FCKLang.Paste, null, null, true );FCKToolbarItems['Print'] = new FCKToolbarButton( 'Print', null, null, null, true );FCKToolbarItems['Undo'] = new FCKToolbarButton( 'Undo', null, null, null, true );FCKToolbarItems['Redo'] = new FCKToolbarButton( 'Redo', null, null, null, true );FCKToolbarItems['Find'] = new FCKToolbarButton( 'Find', null, null, null, true );FCKToolbarItems['SelectAll'] = new FCKToolbarButton( 'SelectAll', 'Select All', null, null, true );FCKToolbarItems['RemoveFormat'] = new FCKToolbarButt
on( 'RemoveFormat', 'Remove Format' );FCKToolbarItems['Unlink'] = new FCKToolbarButton( 'Unlink' );FCKToolbarItems['Bold'] = new FCKToolbarButton( 'Bold' );FCKToolbarItems['Italic'] = new FCKToolbarButton( 'Italic' );FCKToolbarItems['Underline'] = new FCKToolbarButton( 'Underline' );FCKToolbarItems['StrikeThrough']= new FCKToolbarButton( 'StrikeThrough', 'Strike Through' );FCKToolbarItems['Subscript'] = new FCKToolbarButton( 'Subscript' );FCKToolbarItems['Superscript'] = new FCKToolbarButton( 'Superscript' );FCKToolbarItems['OrderedList'] = new FCKToolbarButton( 'InsertOrderedList', 'Ordered List', 'Insert/Remove Ordered List' );FCKToolbarItems['UnorderedList']= new FCKToolbarButton( 'InsertUnorderedList', 'Unordered List', 'Insert/Remove Unordered List' );FCKToolbarItems['Outdent'] = new FCKToolbarButton( 'Outdent' );FCKToolbarItems['Indent'] = new FCKToolbarButton( 'Indent' );FCKToolbarItems['Link'] = new FCKToolbarButton( 'Link', 'Link', 'Create/Edit Link' );FCKToolbarItems['Unlink'] = new FCKToolbarButton( 'Unlink', 'Remove Link' );FCKToolbarItems['Image'] = new FCKToolbarButton( 'Image', 'Image', 'Insert/Edit Image' );FCKToolbarItems['Table'] = new FCKToolbarButton( 'Table', 'Table', 'Create/Edit Table' );FCKToolbarItems['SpecialChar'] = new FCKToolbarButton( 'SpecialChar', 'Special Character', 'Insert Special Character' );FCKToolbarItems['Smiley'] = new FCKToolbarButton( 'Smiley', 'Smiley', 'Insert Smiley' );FCKToolbarItems['Rule'] = new FCKToolbarButton( 'InsertHorizontalRule', 'Horizontal Rule', 'Insert Horizontal Rule' );FCKToolbarItems['JustifyLeft'] = new FCKToolbarButton( 'JustifyLeft', 'Align Left' );FCKToolbarItems['JustifyCenter']= new FCKToolbarButton( 'JustifyCenter', 'Center' );FCKToolbarItems['JustifyRight'] = new FCKToolbarButton( 'JustifyRight', 'Align Right' );FCKToolbarItems['JustifyFull'] = new FCKToolbarButton( 'JustifyFull', 'Justify' );FCKToolbarItems['FontName'] = new FCKToolbarCombo( 'FontName', FCKLang['Font'], FCKConfig.FontNames, FCKConfig.FontNames );FCKToolbarItems['FontSize'] = new FCKToolbarCombo( 'FontSize', FCKLang['FontSize'], '1;2;3;4;5;6;7', 'xx-small;x-small;small;medium;large;x-large;xx-large' );FCKToolbarItems['FontFormat'] = new FCKToolbarCombo( 'FontFormat', FCKLang['FontFormat'], '<P>;<DIV>;<H1>;<H2>', 'Normal (P);Normal (DIV);Heading 1;Heading 2' );var FCKToolbar=function(){this.Items=new Array();this.DOMTable=document.createElement('table');this.DOMTable.className='TB_Toolbar';with (this.DOMTable){style.styleFloat=style.cssFloat=FCKLang.Dir=='rtl' ? 'right' : 'left';cellPadding=0;cellSpacing=0;border=0;};this.DOMRow=this.DOMTable.insertRow(-1);var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_Start';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(this.DOMTable);};FCKToolbar.prototype.AddItem=function(toolbarItem){this.Items[ this.Items.length ]=toolbarItem;toolbarItem.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.unselectable='on';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_End';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};var FCKToolbarSet=new Object();FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display = 'none';document.getElementById('Expanded').style.display = '';if (! FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()", 1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display = '';document.getElementById('Expanded').style.display = 'none';if (! FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()", 1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse || FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display = FCKConfig.ToolbarCanCollapse ? '' : 'none';};FCKToolbarSet.Load=function(toolbarSetName){this.DOMElement=document.getElementById('eToolbar');var ToolbarSet=FCKConfig.ToolbarSets[toolbarSetName];if (! ToolbarSet){alert('Toolbar set "' + toolbarSetName + '" doesn\'t exist.');return;};this.Toolbars=new Array();for (var x=0 ; x < ToolbarSet.length ; x++){var oToolbar=new FCKToolbar();for (var j=0 ; j < ToolbarSet[x].length ; j++){var sItem=ToolbarSet[x][j];if (sItem=='-') oToolbar.AddSeparator();else{var oItem=FCKToolbarItems[sItem];if (oItem) oToolbar.AddItem(oItem);else alert('Unknown toolbar item name "' + sItem + "'");};};oToolbar.AddTerminator();this.Toolbars[ this.Toolbars.length ]=oToolbar;};this.Redraw();};FCKToolbarSet.Redraw=function(){};FCKToolbarSet.RefreshItemsState=function(){for (var i=0 ; i < FCKToolbarSet.Toolbars.length ; i++){var oToolbar=FCKToolbarSet.Toolbars[i];for (var j=0 ; j < oToolbar.Items.length ; j++){oToolbar.Items[j].RefreshState();};};};var FCKDialog=new Object();FCKDialog.OpenDialog=function(dialogName, dialogTitle, dialogPage, width, height){var oDialogInfo=new Object();oDialogInfo.Title=dialogTitle;oDialogInfo.Page=dialogPage;oDialogInfo.Editor=window;var sUrl=FCKConfig.BasePath + 'fckdialog.html';this.Show(oDialogInfo, dialogName, sUrl, width, height);};FCKDialog.Show=function(dialogInfo, dialogName, pageUrl, dialogWidth, dialogHeight){var iTop=(screen.height - dialogHeight) / 2;var iLeft=(screen.width - dialogWidth) / 2;var sOption="location=no,menubar=no,resizable=no,toolbar=no,dependent=yes" + ",width=" + dialogWidth + ",height=" + dialogHeight + ",top=" + iTop + ",left=" + iLeft;var oWindow=window.open('', 'FCKEditorDialog', sOption, true);oWindow.moveTo(iLeft, iTop);oWindow.resizeTo(dialogWidth, dialogHeight);oWindow.focus();oWindow.location.href=pageUrl;oWindow.dialogArguments=dialogInfo;this.Window=oWindow;window.top.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS);window.top.parent.addEventListener('mousedown', this.CheckFocus, true);window.top.parent.addEventListener('mouseup', this.CheckFocus, true);window.top.parent.addEventListener('click', this.CheckFocus, true);window.top.parent.addEventListener('focus', this.CheckFocus, true);};FCKDialog.CheckFocus=function(){if (FCKDialog.Window && !FCKDialog.Window.closed){FCKDialog.Window.focus();return false;}else{window.top.releaseEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS);window.top.parent.removeEventListener('onmousedown', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('mouseup', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('click', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('onfocus', FCKDialog.CheckFocus, true);};};var FCKContextMenuItem=function(contextMenu, commandName, label, hasIcon){this.ContextMenu=contextMenu;this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.HasIcon=hasIcon ? true : false;};FCKContextMenuItem.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=function(){if (this.className !='CM_Disabled') this.className='CM_Over';};this._Row.onmouseout=function(){if (this.className !='CM_Disabled') this.className='CM_Option';};this._Row.onclick=function(){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();return false;};var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';if (this.HasIcon ) oCell.innerHTML='<img alt="" src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="20" unselectable="on">';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.unselectable='o
n';oCell.noWrap=true;oCell.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible ? '' : 'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON : case FCK_TRISTATE_OFF : this._Row.className='CM_Option';break;default : this._Row.className='CM_Disabled';break;};};var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Separator';var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible ? '' : 'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){};var FCKContextMenuGroup=function(){this.IsVisible=true;this.Items=new Array();this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(contextMenuItem){this.Items[ this.Items.length ]=contextMenuItem;};FCKContextMenuGroup.prototype.CreateTableRows=function(table){for (var i=0 ; i < this.Items.length ; i++){this.Items[i].CreateTableRow(table);};};FCKContextMenuGroup.prototype.SetVisible=function(isVisible){for (var i=0 ; i < this.Items.length ; i++){this.Items[i].SetVisible(isVisible);};this.IsVisible=isVisible;};FCKContextMenuGroup.prototype.RefreshState=function(){if (! this.IsVisible) return;for (var i=0 ; i < this.Items.length ; i++){this.Items[i].RefreshState();};};var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var oTable=this._Document.createElement('TABLE');oTable.cellSpacing=0;oTable.cellPadding=0;oTable.border=0;this._Div.appendChild(oTable);this....
[truncated message content] |