Error message on load

Last post 09-08-2008, 9:15 AM by infringer. 4 replies.
Sort Posts: Previous Next
  •  09-05-2008, 10:54 AM 43648

    Error message on load

    I'm using Firefox 3.0.1 with Firebug   When loading CuteEditor, I get the following error in Firebug's console:
     
    1var OxO11c3=["isWinIE","isGecko","isSafari","isOpera","userAgent","ua","opera","safari","gecko","msie","compatMode","document","CSS1Compat","head","script","language","javascript","type","text/javascript","src","id","undefined","Microsoft.XMLHTTP","readyState","onreadystatechange","","length","all","childNodes","nodeType","\x0D\x0A","onchange","oninitialized","command","commandui","commandvalue","returnValue","oncommand","string","event","_fireEventFunction","parentNode","_IsCuteEditor","True","readOnly","_IsRichDropDown","null","value","selectedIndex","nodeName","TR","cells","display","style","nextSibling","innerHTML","\x3Cimg src=\x22","/Images/t-minus.gif\x22\x3E","CuteEditor_CollapseTreeDropDownItem(this,\x22","\x22)","onclick","onmousedown","none","/Images/t-plus.gif\x22\x3E","CuteEditor_ExpandTreeDropDownItem(this,\x22","contains","UNSELECTABLE","on","tabIndex","-1","//TODO: event not found? throw error ?","contentWindow","contentDocument","parentWindow","frames","frameElement","//TODO:frame contentWindow not found?","preventDefault","caller","arguments","parent","top","opener","srcElement","target","//TODO: srcElement not found? throw error ?","fromElement","relatedTarget","toElement","keyCode","clientX","clientY","offsetX","offsetY","button","ctrlKey","altKey","shiftKey","cancelBubble","stopPropagation",";CuteEditor_GetEditor(this).ExecImageCommand(this.getAttribute(\x27Command\x27),this.getAttribute(\x27CommandUI\x27),this.getAttribute(\x27CommandArgument\x27))","this.onmouseout();CuteEditor_GetEditor(this).DropMenu(this.getAttribute(\x27Group\x27),this)","ResourceDir","Theme","/Themes/","/Images/all.png","/Images/blank2020.png","IMG","Command","Group","ThemeIndex","width","20px","height","backgroundImage","url(",")","backgroundPosition","0 -","px","onload","className","separator","CuteEditorButton","CuteEditor_ButtonCommandOver(this)","onmouseover","CuteEditor_ButtonCommandOut(this)","onmouseout","CuteEditor_ButtonCommandDown(this)","CuteEditor_ButtonCommandUp(this)","onmouseup","oncontextmenu","ondragstart","ondblclick","_ToolBarID","_CodeViewToolBarID","_FrameID"," CuteEditorFrame"," CuteEditorToolbar","cursor","no-drop","ActiveTab","View","Code","Edit","buttonInitialized","isover","CuteEditorButtonOver","CuteEditorButtonDown","CuteEditorDown","border","solid 1px #0A246A","backgroundColor","#b6bdd2","padding","1px","solid 1px #f5f5f4","inset 1px","IsCommandDisabled","CuteEditorButtonDisabled","IsCommandActive","CuteEditorButtonActive","cmd_fromfullpage","(","href","location",",DanaInfo=",",","+","scriptProperties","GetScriptProperty","/Scripts/Gecko_Implementation/CuteEditorImplementation.js?i=1","CuteEditorImplementation","function","GET","\x26getModified=1","status","body","InitializeCode","block","contentEditable"," \x3Cbr /\x3E ","designMode","CuteEditorInitialize"];var _Browser_TypeInfo=null; function Browser__InitType(){if(_Browser_TypeInfo!=null){return ;} ;var Ox147={}; Ox147[OxO11c3[0x5]]=navigator[OxO11c3[0x4]].toLowerCase(),Ox147[OxO11c3[0x3]]=(Ox147[OxO11c3[0x5]].indexOf(OxO11c3[0x6])>-0x1),Ox147[OxO11c3[0x2]]=(Ox147[OxO11c3[0x5]].indexOf(OxO11c3[0x7])>-0x1),Ox147[OxO11c3[0x1]]=(!Ox147[OxO11c3[0x3]]&&!Ox147[OxO11c3[0x2]]&&Ox147[OxO11c3[0x5]].indexOf(OxO11c3[0x8])>-0x1),Ox147[OxO11c3[0x0]]=(!Ox147[OxO11c3[0x3]]&&Ox147[OxO11c3[0x5]].indexOf(OxO11c3[0x9])>-0x1) ; _Browser_TypeInfo=Ox147 ;} ; Browser__InitType() ; function Browser_IsWinIE(){return _Browser_TypeInfo[OxO11c3[0x0]];} ; function Browser_IsGecko(){return _Browser_TypeInfo[OxO11c3[0x1]];} ; function Browser_IsOpera(){return _Browser_TypeInfo[OxO11c3[0x3]];} ; function Browser_IsSafari(){return _Browser_TypeInfo[OxO11c3[0x2]];} ; function Browser_UseIESelection(){return _Browser_TypeInfo[OxO11c3[0x0]];} ; function Browser_IsCSS1Compat(){return window[OxO11c3[0xb]][OxO11c3[0xa]]==OxO11c3[0xc];} ; function include(Ox8ef,Ox2bc){var Ox8f0=document.getElementsByTagName(OxO11c3[0xd]).item(0x0);var Ox8f1=document.getElementById(Ox8ef);if(Ox8f1){ Ox8f0.removeChild(Ox8f1) ;} ;var Ox8f2=document.createElement(OxO11c3[0xe]); Ox8f2.setAttribute(OxO11c3[0xf],OxO11c3[0x10]) ; Ox8f2.setAttribute(OxO11c3[0x11],OxO11c3[0x12]) ; Ox8f2.setAttribute(OxO11c3[0x13],Ox2bc) ; Ox8f2.setAttribute(OxO11c3[0x14],Ox8ef) ; Ox8f0.appendChild(Ox8f2) ;} ; function CreateXMLHttpRequest(){try{if( typeof (XMLHttpRequest)!=OxO11c3[0x15]){return new XMLHttpRequest();} ;if( typeof (ActiveXObject)!=OxO11c3[0x15]){return new ActiveXObject(OxO11c3[0x16]);} ;} catch(x){return null;} ;} ; function LoadXMLAsync(Ox8f4,Ox2bc,Ox153,Ox8f5){var Ox79a=CreateXMLHttpRequest(); function Ox8f6(){if(Ox79a[OxO11c3[0x17]]!=0x4){return ;} ; Ox79a[OxO11c3[0x18]]= new Function() ;var Ox1a7=Ox79a; Ox79a=null ;if(Ox153){ Ox153(Ox1a7) ;} ;} ; Ox79a[OxO11c3[0x18]]=Ox8f6 ; Ox79a.open(Ox8f4,Ox2bc,true) ; Ox79a.send(Ox8f5||OxO11c3[0x19]) ;} ; function Element_GetAllElements(p){var arr=[];if(Browser_IsWinIE()){for(var i=0x0;i<p[OxO11c3[0x1b]][OxO11c3[0x1a]];i++){ arr.push(p[OxO11c3[0x1b]].item(i)) ;} ;return arr;} ; Ox15d(p) ; function Ox15d(Oxd){var Ox15e=Oxd[OxO11c3[0x1c]];var Ox10=Ox15e[OxO11c3[0x1a]];for(var i=0x0;i<Ox10;i++){var Ox91=Ox15e.item(i);if(Ox91[OxO11c3[0x1d]]!=0x1){continue ;} ; arr.push(Ox91) ; Ox15d(Ox91) ;} ;} ;return arr;} ;var __ISDEBUG=false; function Debug_Todo(msg){if(!__ISDEBUG){return ;} ;throw ( new Error(msg+OxO11c3[0x1e]+Debug_Todo.caller));} ; function Window_GetElement(Ox140,Ox11d,Ox15b){var Oxd=Ox140[OxO11c3[0xb]].getElementById(Ox11d);if(Oxd){return Oxd;} ;var Oxc2=Ox140[OxO11c3[0xb]].getElementsByName(Ox11d);if(Oxc2[OxO11c3[0x1a]]>0x0){return Oxc2.item(0x0);} ;return null;} ; function CuteEditor_AddMainMenuItems(Ox56c){} ; function CuteEditor_AddDropMenuItems(Ox56c,Ox573){} ; function CuteEditor_AddTagMenuItems(Ox56c,Ox575){} ; function CuteEditor_AddVerbMenuItems(Ox56c,Ox575){} ; function CuteEditor_OnInitialized(editor){} ; function CuteEditor_OnCommand(editor,Ox579,Ox57a,Oxad){} ; function CuteEditor_OnChange(editor){} ; function CuteEditor_FilterCode(editor,Ox188){return Ox188;} ; function CuteEditor_FilterHTML(editor,Ox19e){return Ox19e;} ; function CuteEditor_FireChange(editor){ window.CuteEditor_OnChange(editor) ; CuteEditor_FireEvent(editor,OxO11c3[0x1f],null) ;} ; function CuteEditor_FireInitialized(editor){ window.CuteEditor_OnInitialized(editor) ; CuteEditor_FireEvent(editor,OxO11c3[0x20],null) ;} ; function CuteEditor_FireCommand(editor,Ox579,Ox57a,Oxad){var Oxca=window.CuteEditor_OnCommand(editor,Ox579,Ox57a,Oxad);if(Oxca==true){return true;} ;var Ox581={}; Ox581[OxO11c3[0x21]]=Ox579 ; Ox581[OxO11c3[0x22]]=Ox57a ; Ox581[OxO11c3[0x23]]=Oxad ; Ox581[OxO11c3[0x24]]=true ; CuteEditor_FireEvent(editor,OxO11c3[0x25],Ox581) ;if(Ox581[OxO11c3[0x24]]==false){return true;} ;} ; function CuteEditor_FireEvent(editor,Ox583,Ox584){if(Ox584==null){ Ox584={} ;} ;var Ox585=editor.getAttribute(Ox583);if(Ox585){if( typeof (Ox585)==OxO11c3[0x26]){ editor[OxO11c3[0x28]]= new Function(OxO11c3[0x27],Ox585) ;} else { editor[OxO11c3[0x28]]=Ox585 ;} ; editor._fireEventFunction(Ox584) ;} ;} ; function CuteEditor_GetEditor(element){for(var Oxdc=element;Oxdc!=null;Oxdc=Oxdc[OxO11c3[0x29]]){if(Oxdc.getAttribute(OxO11c3[0x2a])==OxO11c3[0x2b]){return Oxdc;} ;} ;return null;} ; function CuteEditor_DropDownCommand(element,Ox8f8){var editor=CuteEditor_GetEditor(element);if(editor[OxO11c3[0x2c]]){return ;} ;if(element.getAttribute(OxO11c3[0x2d])==OxO11c3[0x2b]){var Oxce=element.GetValue();if(Oxce==OxO11c3[0x2e]){ Oxce=OxO11c3[0x19] ;} ;var Ox117=element.GetText();if(Ox117==OxO11c3[0x2e]){ Ox117=OxO11c3[0x19] ;} ; element.SetSelectedIndex(0x0) ; editor.ExecCommand(Ox8f8,false,Oxce,Ox117) ;} else {if(element[OxO11c3[0x2f]]){var Oxce=element[OxO11c3[0x2f]];if(Oxce==OxO11c3[0x2e]){ Oxce=OxO11c3[0x19] ;} ; element[OxO11c3[0x30]]=0x0 ; editor.ExecCommand(Ox8f8,false,Oxce,Ox117) ;} else { element[OxO11c3[0x30]]=0x0 ;} ;} ; editor.FocusDocument() ;} ; function CuteEditor_ExpandTreeDropDownItem(src,Ox643){var Ox611=null;while(src!=null){if(src[OxO11c3[0x31]]==OxO11c3[0x32]){ Ox611=src ;break ;} ; src=src[OxO11c3[0x29]] ;} ;var Ox16=Ox611[OxO11c3[0x33]].item(0x0); Ox611[OxO11c3[0x36]][OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x19] ; Ox16[OxO11c3[0x37]]=OxO11c3[0x38]+Ox643+OxO11c3[0x39] ; Ox611[OxO11c3[0x3c]]= new Function(OxO11c3[0x3a]+Ox643+OxO11c3[0x3b]) ; Ox611[OxO11c3[0x3d]]= new Function(OxO11c3[0x3a]+Ox643+OxO11c3[0x3b]) ;} ; function CuteEditor_CollapseTreeDropDownItem(src,Ox643){var Ox611=null;while(src!=null){if(src[OxO11c3[0x31]]==OxO11c3[0x32]){ Ox611=src ;break ;} ; src=src[OxO11c3[0x29]] ;} ;var Ox16=Ox611[OxO11c3[0x33]].item(0x0); Ox611[OxO11c3[0x36]][OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x3e] ; Ox16[OxO11c3[0x37]]=OxO11c3[0x38]+Ox643+OxO11c3[0x3f] ; Ox611[OxO11c3[0x3c]]= new Function(OxO11c3[0x40]+Ox643+OxO11c3[0x3b]) ; Ox611[OxO11c3[0x3d]]= new Function(OxO11c3[0x40]+Ox643+OxO11c3[0x3b]) ;} ; function Element_Contains(element,Ox106){if(!Browser_IsOpera()){if(element[OxO11c3[0x41]]){return element.contains(Ox106);} ;} ;for(;Ox106!=null;Ox106=Ox106[OxO11c3[0x29]]){if(element==Ox106){return true;} ;} ;return false;} ; function Element_SetUnselectable(element){ element.setAttribute(OxO11c3[0x42],OxO11c3[0x43]) ; element.setAttribute(OxO11c3[0x44],OxO11c3[0x45]) ;var arr=Element_GetAllElements(element);var len=arr[OxO11c3[0x1a]];if(!len){return ;} ;for(var i=0x0;i<len;i++){ arrIdea.setAttribute(OxO11c3[0x42],OxO11c3[0x43]) ; arrIdea.setAttribute(OxO11c3[0x44],OxO11c3[0x45]) ;} ;} ; function Event_GetEvent(Ox161){ Ox161=Event_FindEvent(Ox161) ;if(Ox161==null){ Debug_Todo(OxO11c3[0x46]) ;} ;return Ox161;} ; function Frame_GetContentWindow(Ox266){if(Ox266[OxO11c3[0x47]]){return Ox266[OxO11c3[0x47]];} ;if(Ox266[OxO11c3[0x48]]){if(Ox266[OxO11c3[0x48]][OxO11c3[0x49]]){return Ox266[OxO11c3[0x48]][OxO11c3[0x49]];} ;} ;var Ox140;if(Ox266[OxO11c3[0x14]]){ Ox140=window[OxO11c3[0x4a]][Ox266[OxO11c3[0x14]]] ;if(Ox140){return Ox140;} ;} ;var len=window[OxO11c3[0x4a]][OxO11c3[0x1a]];for(var i=0x0;i<len;i++){ Ox140=window[OxO11c3[0x4a]]Idea ;if(Ox140[OxO11c3[0x4b]]==Ox266){return Ox140;} ;if(Ox140[OxO11c3[0xb]]==Ox266[OxO11c3[0x48]]){return Ox140;} ;} ; Debug_Todo(OxO11c3[0x4c]) ;} ; function Array_IndexOf(arr,Ox163){for(var i=0x0;i<arr[OxO11c3[0x1a]];i++){if(arrIdea==Ox163){return i;} ;} ;return -0x1;} ; function Array_Contains(arr,Ox163){return Array_IndexOf(arr,Ox163)!=-0x1;} ; function Event_FindEvent(Ox161){if(Ox161&&Ox161[OxO11c3[0x4d]]){return Ox161;} ;if(Browser_IsGecko()){return Event_FindEvent_FindEventFromCallers();} else {if(window[OxO11c3[0x27]]){return window[OxO11c3[0x27]];} ;return Event_FindEvent_FindEventFromWindows();} ;return null;} ; function Event_FindEvent_FindEventFromCallers(){var Ox169=Event_GetEvent[OxO11c3[0x4e]];for(var i=0x0;i<0x64;i++){if(!Ox169){break ;} ;var Ox161=Ox169[OxO11c3[0x4f]][0x0];if(Ox161&&Ox161[OxO11c3[0x4d]]){return Ox161;} ; Ox169=Ox169[OxO11c3[0x4e]] ;} ;} ; function Event_FindEvent_FindEventFromWindows(){var arr=[];return Ox16b(window); function Ox16b(Ox140){if(Ox140==null){return null;} ;if(Ox140[OxO11c3[0x27]]){return Ox140[OxO11c3[0x27]];} ;if(Array_Contains(arr,Ox140)){return null;} ; arr.push(Ox140) ;var Ox16c=[];if(Ox140[OxO11c3[0x50]]!=Ox140){ Ox16c.push(Ox140.parent) ;} ;if(Ox140[OxO11c3[0x51]]!=Ox140[OxO11c3[0x50]]){ Ox16c.push(Ox140.top) ;} ;if(Ox140[OxO11c3[0x52]]){ Ox16c.push(Ox140.opener) ;} ;for(var i=0x0;i<Ox140[OxO11c3[0x4a]][OxO11c3[0x1a]];i++){ Ox16c.push(Ox140[OxO11c3[0x4a]]Idea) ;} ;for(var i=0x0;i<Ox16c[OxO11c3[0x1a]];i++){try{var Ox161=Ox16b(Ox16cIdea);if(Ox161){return Ox161;} ;} catch(x){} ;} ;return null;} ;} ; function Event_GetSrcElement(Ox161){ Ox161=Event_GetEvent(Ox161) ;if(Ox161[OxO11c3[0x53]]){return Ox161[OxO11c3[0x53]];} ;if(Ox161[OxO11c3[0x54]]){return Ox161[OxO11c3[0x54]];} ; Debug_Todo(OxO11c3[0x55]) ;return null;} ; function Event_GetFromElement(Ox161){ Ox161=Event_GetEvent(Ox161) ;if(Ox161[OxO11c3[0x56]]){return Ox161[OxO11c3[0x56]];} ;if(Ox161[OxO11c3[0x57]]){return Ox161[OxO11c3[0x57]];} ;return null;} ; function Event_GetToElement(Ox161){ Ox161=Event_GetEvent(Ox161) ;if(Ox161[OxO11c3[0x58]]){return Ox161[OxO11c3[0x58]];} ;if(Ox161[OxO11c3[0x57]]){return Ox161[OxO11c3[0x57]];} ;return null;} ; function Event_GetKeyCode(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x59]];} ; function Event_GetClientX(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x5a]];} ; function Event_GetClientY(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x5b]];} ; function Event_GetOffsetX(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x5c]];} ; function Event_GetOffsetY(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x5d]];} ; function Event_IsLeftButton(Ox161){ Ox161=Event_GetEvent(Ox161) ;if(Browser_IsWinIE()){return Ox161[OxO11c3[0x5e]]==0x1;} ;if(Browser_IsGecko()){return Ox161[OxO11c3[0x5e]]==0x0;} ;return Ox161[OxO11c3[0x5e]]==0x0;} ; function Event_IsCtrlKey(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x5f]];} ; function Event_IsAltKey(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x60]];} ; function Event_IsShiftKey(Ox161){ Ox161=Event_GetEvent(Ox161) ;return Ox161[OxO11c3[0x61]];} ; function Event_PreventDefault(Ox161){ Ox161=Event_GetEvent(Ox161) ; Ox161[OxO11c3[0x24]]=false ;if(Ox161[OxO11c3[0x4d]]){ Ox161.preventDefault() ;} ;} ; function Event_CancelBubble(Ox161){ Ox161=Event_GetEvent(Ox161) ; Ox161[OxO11c3[0x62]]=true ;if(Ox161[OxO11c3[0x63]]){ Ox161.stopPropagation() ;} ;return false;} ; function Event_CancelEvent(Ox161){ Ox161=Event_GetEvent(Ox161) ; Event_PreventDefault(Ox161) ;return Event_CancelBubble(Ox161);} ; function CuteEditor_BasicInitialize(editor){var Ox8fc=Browser_IsOpera();var Ox60b= new Function(OxO11c3[0x64]);var Ox8fd= new Function(OxO11c3[0x65]);var Ox8fe=editor.GetScriptProperty(OxO11c3[0x66]);var Ox8ff=editor.GetScriptProperty(OxO11c3[0x67]);var Ox900=Ox8fe+OxO11c3[0x68]+Ox8ff+OxO11c3[0x69];var Ox901=Ox8fe+OxO11c3[0x6a];var images=editor.getElementsByTagName(OxO11c3[0x6b]);var len=images[OxO11c3[0x1a]];for(var i=0x0;i<len;i++){var img=imagesIdea;var Oxc1=img.getAttribute(OxO11c3[0x6c]);var Ox573=img.getAttribute(OxO11c3[0x6d]);if(!(Oxc1||Ox573)){continue ;} ;var Ox902=img.getAttribute(OxO11c3[0x6e]);if(parseInt(Ox902)>=0x0){ img[OxO11c3[0x35]][OxO11c3[0x6f]]=OxO11c3[0x70] ; img[OxO11c3[0x35]][OxO11c3[0x71]]=OxO11c3[0x70] ; img[OxO11c3[0x13]]=Ox901 ; img[OxO11c3[0x35]][OxO11c3[0x72]]=OxO11c3[0x73]+Ox900+OxO11c3[0x74] ; img[OxO11c3[0x35]][OxO11c3[0x75]]=OxO11c3[0x76]+(Ox902*0x14)+OxO11c3[0x77] ; img[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x19] ;} ;if(!Oxc1&&!Ox573){if(Ox8fc){ img[OxO11c3[0x78]]=CuteEditor_OperaHandleImageLoaded ;} ;continue ;} ;if(img[OxO11c3[0x79]]!=OxO11c3[0x7a]){ img[OxO11c3[0x79]]=OxO11c3[0x7b] ; img[OxO11c3[0x7d]]= new Function(OxO11c3[0x7c]) ; img[OxO11c3[0x7f]]= new Function(OxO11c3[0x7e]) ; img[OxO11c3[0x3d]]= new Function(OxO11c3[0x80]) ; img[OxO11c3[0x82]]= new Function(OxO11c3[0x81]) ;} ;if(!img[OxO11c3[0x83]]){ img[OxO11c3[0x83]]=Event_CancelEvent ;} ;if(!img[OxO11c3[0x84]]){ img[OxO11c3[0x84]]=Event_CancelEvent ;} ;if(Oxc1){var Ox169=Ox60b;if(img[OxO11c3[0x3c]]==null){ img[OxO11c3[0x3c]]=Ox169 ;} ;if(img[OxO11c3[0x85]]==null){ img[OxO11c3[0x85]]=Ox169 ;} ;} else {if(Ox573){if(img[OxO11c3[0x3c]]==null){ img[OxO11c3[0x3c]]=Ox8fd ;} ;} ;} ;} ;var Ox677=Window_GetElement(window,editor.GetScriptProperty(OxO11c3[0x86]),true);var Ox678=Window_GetElement(window,editor.GetScriptProperty(OxO11c3[0x87]),true);var Ox674=Window_GetElement(window,editor.GetScriptProperty(OxO11c3[0x88]),true); Ox674[OxO11c3[0x79]]+=OxO11c3[0x89] ; Ox677[OxO11c3[0x79]]+=OxO11c3[0x8a] ; Ox678[OxO11c3[0x79]]+=OxO11c3[0x8a] ; Element_SetUnselectable(Ox677) ; Element_SetUnselectable(Ox678) ;try{ editor[OxO11c3[0x35]][OxO11c3[0x8b]]=OxO11c3[0x8c] ;} catch(x){} ;var Ox6f6=editor.GetScriptProperty(OxO11c3[0x8d]);switch(Ox6f6){case OxO11c3[0x90]: Ox677[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x19] ;break ;case OxO11c3[0x8f]: Ox678[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x19] ;break ;case OxO11c3[0x8e]:break ;;;;} ;} ; function CuteEditor_OperaHandleImageLoaded(){var img=this;if(img[OxO11c3[0x35]][OxO11c3[0x34]]){ img[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x3e] ; setTimeout(function Ox904(){ img[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0x19] ;} ,0x1) ;} ;} ; function CuteEditor_ButtonOver(element){if(!element[OxO11c3[0x91]]){ element[OxO11c3[0x83]]=Event_CancelEvent ; element[OxO11c3[0x7f]]=CuteEditor_ButtonOut ; element[OxO11c3[0x3d]]=CuteEditor_ButtonDown ; element[OxO11c3[0x82]]=CuteEditor_ButtonUp ; Element_SetUnselectable(element) ; element[OxO11c3[0x91]]=true ;} ; element[OxO11c3[0x92]]=true ; element[OxO11c3[0x79]]=OxO11c3[0x93] ;} ; function CuteEditor_ButtonOut(){var element=this; element[OxO11c3[0x79]]=OxO11c3[0x7b] ; element[OxO11c3[0x92]]=false ;} ; function CuteEditor_ButtonDown(){if(!Event_IsLeftButton()){return ;} ;var element=this; element[OxO11c3[0x79]]=OxO11c3[0x94] ;} ; function CuteEditor_ButtonUp(){if(!Event_IsLeftButton()){return ;} ;var element=this;if(element[OxO11c3[0x92]]){ element[OxO11c3[0x79]]=OxO11c3[0x93] ;} else { element[OxO11c3[0x79]]=OxO11c3[0x95] ;} ;} ; function CuteEditor_ColorPicker_ButtonOver(element){if(!element[OxO11c3[0x91]]){ element[OxO11c3[0x83]]=Event_CancelEvent ; element[OxO11c3[0x7f]]=CuteEditor_ColorPicker_ButtonOut ; element[OxO11c3[0x3d]]=CuteEditor_ColorPicker_ButtonDown ; Element_SetUnselectable(element) ; element[OxO11c3[0x91]]=true ;} ; element[OxO11c3[0x92]]=true ; element[OxO11c3[0x35]][OxO11c3[0x96]]=OxO11c3[0x97] ; element[OxO11c3[0x35]][OxO11c3[0x98]]=OxO11c3[0x99] ; element[OxO11c3[0x35]][OxO11c3[0x9a]]=OxO11c3[0x9b] ;} ; function CuteEditor_ColorPicker_ButtonOut(){var element=this; element[OxO11c3[0x92]]=false ; element[OxO11c3[0x35]][OxO11c3[0x96]]=OxO11c3[0x9c] ; element[OxO11c3[0x35]][OxO11c3[0x98]]=OxO11c3[0x19] ; element[OxO11c3[0x35]][OxO11c3[0x9a]]=OxO11c3[0x9b] ;} ; function CuteEditor_ColorPicker_ButtonDown(){var element=this; element[OxO11c3[0x35]][OxO11c3[0x96]]=OxO11c3[0x9d] ; element[OxO11c3[0x35]][OxO11c3[0x98]]=OxO11c3[0x19] ; element[OxO11c3[0x35]][OxO11c3[0x9a]]=OxO11c3[0x9b] ;} ; function CuteEditor_ButtonCommandOver(element){ element[OxO11c3[0x92]]=true ;if(element[OxO11c3[0x9e]]){ element[OxO11c3[0x79]]=OxO11c3[0x9f] ;} else { element[OxO11c3[0x79]]=OxO11c3[0x93] ;} ;} ; function CuteEditor_ButtonCommandOut(element){ element[OxO11c3[0x92]]=false ;if(element[OxO11c3[0xa0]]){ element[OxO11c3[0x79]]=OxO11c3[0xa1] ;} else {if(element[OxO11c3[0x9e]]){ element[OxO11c3[0x79]]=OxO11c3[0x9f] ;} else {if(element[OxO11c3[0x14]]!=OxO11c3[0xa2]){ element[OxO11c3[0x79]]=OxO11c3[0x7b] ;} ;} ;} ;} ; function CuteEditor_ButtonCommandDown(element){if(!Event_IsLeftButton()){return ;} ; element[OxO11c3[0x79]]=OxO11c3[0x94] ;} ; function CuteEditor_ButtonCommandUp(element){if(!Event_IsLeftButton()){return ;} ;if(element[OxO11c3[0x9e]]){ element[OxO11c3[0x79]]=OxO11c3[0x9f] ;return ;} ;if(element[OxO11c3[0x92]]){ element[OxO11c3[0x79]]=OxO11c3[0x93] ;} else {if(element[OxO11c3[0xa0]]){ element[OxO11c3[0x79]]=OxO11c3[0xa1] ;} else { element[OxO11c3[0x79]]=OxO11c3[0x7b] ;} ;} ;} ;var CuteEditorGlobalFunctions=[CuteEditor_GetEditor,CuteEditor_ButtonOver,CuteEditor_ButtonOut,CuteEditor_ButtonDown,CuteEditor_ButtonUp,CuteEditor_ColorPicker_ButtonOver,CuteEditor_ColorPicker_ButtonOut,CuteEditor_ColorPicker_ButtonDown,CuteEditor_ButtonCommandOver,CuteEditor_ButtonCommandOut,CuteEditor_ButtonCommandDown,CuteEditor_ButtonCommandUp,CuteEditor_DropDownCommand,CuteEditor_ExpandTreeDropDownItem,CuteEditor_CollapseTreeDropDownItem,CuteEditor_OnInitialized,CuteEditor_OnCommand,CuteEditor_OnChange,CuteEditor_AddVerbMenuItems,CuteEditor_AddTagMenuItems,CuteEditor_AddMainMenuItems,CuteEditor_AddDropMenuItems,CuteEditor_FilterCode,CuteEditor_FilterHTML]; function SetupCuteEditorGlobalFunctions(){for(var i=0x0;i<CuteEditorGlobalFunctions[OxO11c3[0x1a]];i++){var Ox169=CuteEditorGlobalFunctionsIdea;var name=Ox169+OxO11c3[0x19]; name=name.substr(0x8,name.indexOf(OxO11c3[0xa3])-0x8).replace(/\s/g,OxO11c3[0x19]) ;if(!window[name]){ window[name]=Ox169 ;} ;} ;} ; SetupCuteEditorGlobalFunctions() ;var __danainfo=null;var danaurl=window[OxO11c3[0xa5]][OxO11c3[0xa4]];var danapos=danaurl.indexOf(OxO11c3[0xa6]);if(danapos!=-0x1){var pluspos1=danaurl.indexOf(OxO11c3[0xa7],danapos+0xa);var pluspos2=danaurl.indexOf(OxO11c3[0xa8],danapos+0xa);if(pluspos1!=-0x1&&pluspos1<pluspos2){ pluspos2=pluspos1 ;} ; __danainfo=danaurl.substring(danapos,pluspos2)+OxO11c3[0xa8] ;} ; function CuteEditor_GetScriptProperty(name){return this[OxO11c3[0xa9]][name];} ; function CuteEditor_SetScriptProperty(name,Oxce){if(Oxce==null){ this[OxO11c3[0xa9]][name]=null ;} else { this[OxO11c3[0xa9]][name]=String(Oxce) ;} ;} ; function CuteEditorInitialize(Ox90f,Ox910){var editor=Window_GetElement(window,Ox90f,true); editor[OxO11c3[0xa9]]=Ox910 ; editor[OxO11c3[0xaa]]=CuteEditor_GetScriptProperty ;var Ox674=Window_GetElement(window,editor.GetScriptProperty(OxO11c3[0x88]),true);var editwin,editdoc;try{ editwin=Frame_GetContentWindow(Ox674) ; editdoc=editwin[OxO11c3[0xb]] ;} catch(x){} ;var Ox911=false;var Ox912;var Ox913=false;var Ox914=editor.GetScriptProperty(OxO11c3[0x66])+OxO11c3[0xab]; function Ox915(){if( typeof (window[OxO11c3[0xac]])==OxO11c3[0xad]){return ;} ; LoadXMLAsync(OxO11c3[0xae],Ox914+OxO11c3[0xaf],Ox916) ;} ; function Ox916(Ox1a7){if(Ox1a7[OxO11c3[0xb0]]!=0xc8){return ;} ; CuteEditorInstallScriptCode(Ox1a7.responseText,OxO11c3[0xac]) ;if(Ox911){ Ox918() ;} ;} ; function Ox917(Ox1a7){if(Ox1a7[OxO11c3[0xb0]]!=0xc8){return ;} ; CuteEditorInstallScriptCode(Ox1a7.responseText,OxO11c3[0xac]) ;if(Ox911){ Ox918() ;} ;} ; function Ox918(){if(Ox913){return ;} ; Ox913=true ; window.CuteEditorImplementation(editor) ;try{ editor[OxO11c3[0x35]][OxO11c3[0x8b]]=OxO11c3[0x19] ;} catch(x){} ;try{ editdoc[OxO11c3[0xb1]][OxO11c3[0x35]][OxO11c3[0x8b]]=OxO11c3[0x19] ;} catch(x){} ;var Ox919=editor.GetScriptProperty(OxO11c3[0xb2]);if(Ox919){ editor.Eval(Ox919) ;} ;} ; function Ox91a(){if(!Element_Contains(window[OxO11c3[0xb]].body,editor)){return ;} ;try{ Ox674=Window_GetElement(window,editor.GetScriptProperty(OxO11c3[0x88]),true) ; editwin=Frame_GetContentWindow(Ox674) ; editdoc=editwin[OxO11c3[0xb]] ;var Ox1f0=editdoc[OxO11c3[0xb1]];} catch(x){ setTimeout(Ox91a,0x64) ;return ;} ;if(!editdoc[OxO11c3[0xb1]]){ setTimeout(Ox91a,0x64) ;return ;} ;if(!Ox911){ Ox674[OxO11c3[0x35]][OxO11c3[0x34]]=OxO11c3[0xb3] ;if(Browser_IsOpera()){ editdoc[OxO11c3[0xb1]][OxO11c3[0xb4]]=true ;} else {if(Browser_IsGecko()){ editdoc[OxO11c3[0xb1]][OxO11c3[0x37]]=OxO11c3[0xb5] ;} ; editdoc[OxO11c3[0xb6]]=OxO11c3[0x43] ;} ; Ox911=true ; setTimeout(Ox91a,0x32) ;return ;} ;if( typeof (window[OxO11c3[0xac]])==OxO11c3[0xad]){ Ox918() ;} else {try{ editdoc[OxO11c3[0xb1]][OxO11c3[0x35]][OxO11c3[0x8b]]=OxO11c3[0x8c] ;} catch(x){} ;} ;} ;var Ox91b=0x0;var Oxdc=CuteEditor_Find_DisplayNone(editor);if(Oxdc){ function Ox91c(){if(Oxdc[OxO11c3[0x35]][OxO11c3[0x34]]!=OxO11c3[0x3e]){ window.clearInterval(Ox91b) ; Ox91b=OxO11c3[0x19] ; CuteEditorInitialize(Ox90f,Ox910) ;} ;} ; Ox91b=setInterval(Ox91c,0x3e8) ;} else { CuteEditor_BasicInitialize(editor) ; Ox915() ; Ox91a() ;} ; function CuteEditor_Find_DisplayNone(element){var Ox91e;for(var Oxdc=element;Oxdc!=null;Oxdc=Oxdc[OxO11c3[0x29]]){if(Oxdc[OxO11c3[0x35]]&&Oxdc[OxO11c3[0x35]][OxO11c3[0x34]]==OxO11c3[0x3e]){ Ox91e=Oxdc ;break ;} ;} ;return Ox91e;} ;} ; function CuteEditorInstallScriptCode(Ox896,Ox897){ eval(Ox896) ; window[Ox897]=eval(Ox897) ;} ; window[OxO11c3[0xb7]]=CuteEditorInitialize ;
     
     
    The editor initializes, but the error is annoying.  Is there any way to fix this?
     
    Thanks,
    -David
  •  09-05-2008, 12:04 PM 43653 in reply to 43648

    Re: Error message on load

    David,
     
    We've tested Cute Editor using firefox 3.0.1 with Firebug.
     
     
    Can you try this demo?
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-05-2008, 1:17 PM 43658 in reply to 43653

    Re: Error message on load

    That page produces no error.  I tried creating a custom menu bar, I guess maybe that's what caused the error.  Can someone see if there is an error in the menu bar code?  I've placed it in the AutoConfigure folder.
     
    Thanks,
    -David
     
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <codeviewToolbars>
      <item type="g_start" />
      <item type="image" name="Save" postback="True" />
      <item type="image" name="Print" />
      <item type="image" name="Find" />
      <item type="image" name="ToFullPage" command="FullPage" imagename="fit" hotkey="F12" />
      <item type="image" name="FromFullPage" command="FullPage" imagename="restore" hotkey="F12" />
      <item type="image" name="Cut" />
      <item type="image" name="Copy" />
      <item type="image" name="Paste" />
      <item type="image" name="SelectAll" />
      <item type="image" name="SelectNone" />
      <item type="g_end" />
     </codeviewToolbars>
     <toolbars>
      <item type="g_start" />
      <item type="dropdown" name="CssClass" width="70" RenderItemBorder="true" text="[[CssClass]]"
       command="CssClass" />
      <item type="dropdown" name="FormatBlock" width="70" RenderItemBorder="true" text="[[Paragraph]]"
       command="FormatBlock" />
      <item type="dropdown" name="FontName" width="110" text="[[FontName]]" command="FontName" />
      <item type="dropdown" name="FontSize" width="40" text="[[FontSize]]" command="FontSize" />
      <item type="g_end" />  
      <item type="g_start" />
      <item type="image" name="CleanCode" imagename="cleanup" />
      <item type="image" name="NetSpell" imagename="spell" />
      <item type="image" name="Cut" />
      <item type="image" name="Copy" />
      <!-- groups are defined in Shared/Common.config -->
      <item type="image" name="Paste" />
      <item type="separator" />
      <item type="image" name="Undo" />
      <item type="image" name="Redo" />
      <item type="g_end" />
    <!--  <item type="g_start" />
      <item type="image" name="Break" />
      <item type="image" name="InsertParagraph" imagename="Paragraph" />
      <item type="separator" />
      <item type="image" name="Help" />  
      <item type="g_end" />-->
      <item type="linebreak"/>
      <item type="g_start" />
      <item type="image" name="Bold" />
      <item type="image" name="Italic" />
      <item type="image" name="Underline" imagename="under" />
      <item type="image" name="JustifyLeft" imagename="left" />
      <item type="image" name="JustifyCenter" imagename="center" />
      <item type="image" name="JustifyRight" imagename="right" />
      <item type="image" name="RemoveFormat" imagename="unformat" />
      <item type="forecolor" />
      <item type="backcolor" />
      <item type="g_end" />
      <item type="g_start" />
      <item type="image" name="InsertOrderedList" imagename="numlist" />
      <item type="image" name="InsertUnorderedList" imagename="bullist" />
      <item type="image" name="Indent" />
      <item type="image" name="Outdent" />
      <item type="g_end" />
      <item type="g_start" />
      <item type="image" name="InsertLink" imagename="link" />
      <item type="image" name="Unlink" />
      <item type="holder" name="insertcustombutonhere" />
      <item type="g_end" />  
     </toolbars>
    </configuration>
     
    Also I'm loading it like this:
    $cEditor = new CuteEditor();
    $cEditor->ID = 'phNotes';
    $cEditor->AutoConfigure = CoachFlex;
    $cEditor->FilesPath = "core/CuteEditor_Files";
    $cEditor->ShowCodeViewToolBar = false;
    $cEditor->ThemeType = "Office2003_BlueTheme";
    //$cEditor->ThemeType = "Office2000";
    $cEditor->UseFontTags=false;
    $cEditor->Width = "100%";
    $cEditor->EditorOnPaste = "PastePureText";
    $cEditor->EditorBodyStyle = "font: normal 0.75em Arial;";
    $cEditor->BreakElement="Br";
    $cEditor->EnableStripScriptTags=true;
    $cEditor->ShowPreviewMode = false;
    $cEditor->ShowTagSelecter = false;
    $cEditor->Draw();
    $cEditor = null;
  •  09-05-2008, 2:15 PM 43660 in reply to 43658

    Re: Error message on load

    I've done some testing if I comment out, $cEditor->AutoConfigure = "CoachFlex"; then I get no errors.  When I put it in I get errors.
     
    Can someone tell me how I can crete a custom bar?  I thought I did it properly.
  •  09-08-2008, 9:15 AM 43690 in reply to 43660

    Re: Error message on load

    I figured it out.  I needed to create a CoachFlex.xml file in the ContextMenuMode folder inside of Configuration.  Once I copied Simple.xml and renamed it to CoachFlex.xml everything started working.
     
    Thanks,
    -David
View as RSS news feed in XML