📄 radeditor.js
字号:
var RadEditorNamespace= {lbh: "\267\xb7\xb7",ibh: "\267",S: -1,r: 0,R: 1,I2h: 1,Ibh: 2,obi: 3,O9r: "\x52ADEVENT_CA\x4c\x4cBAC\x4b\x5fS\x54ARTED",Iai: "\x52ADEVENT\x5f\x4dODE_C\x48\x41NG\x45\x44",Obi: "RADEVENT_CON\x54\105XT\x4d\x45NU",o9m: "\x52ADEVENT_S\x45\x4c_CHA\x4e\x47ED",Oag: "\x52ADEVENT_S\x49\x5aE_CH\x41\x4eGED",lbi: "\x52ADEVENT_BEFO\x52\x45_ED\x49\x54_FO\x43\x55S",ibi: "\x52\x41DEVENT\x5f\x4bEYDO\x57\x4e",Ibi: "\x52ADEVENT_K\x45\x59UP",Obj: "\122AD\x45\x56ENT_MO\x55\x53EDO\x57\x4e",lbj: "\122AD\x45\x56ENT_MO\x55\x53EUP",ibj: "\x52ADEVENT_\x43\x55T",Ibj: "\x52\x41DEVENT\x5f\x43OPY",obk: "RADEVENT_PA\x53\x54E",Obk: "RADE\x56\x45NT_RES\x49\x5aE_ST\x41RT",lbk: "RADEVENT_RE\x53\x49ZE_E\x4e\x44",ibk: "\x52ADEVENT_DRA\x47\x5fSTAR\x54",Ibk: "RAD\x45\x56ENT_DR\x41\x47_END",obl: "RADEVENT\x5f\x44ROP",Ou: "\x42old",lu: "Ita\x6c\x69c",iu: "\x55nderli\x6e\x65",Iu: "ForeCol\x6f\x72",N: "\x42ackCo\x6c\x6fr",ov: "\x46\157ntN\x61\x6de",n: "FontSize",Ov: "\x52ealFont\x53\x69ze",o16: "\x43onvertToU\x70\x70er",I15: "\103on\x76\x65rtToLo\x77\x65r",ow: "\x4austif\x79\x4ceft",Ow: "\x4austifyRight",lw: "\x4a\165sti\x66\x79Cente\x72",iw: "Ju\x73\x74ifyFull",Iw: "\x4a\x75stifyNo\x6e\x65",ox: "\x49ndent",Ox: "\x4futdent",lx: "Subsc\x72\x69pt",ix: "\x53upers\x63\x72ipt",Ix: "\x53trikeThrou\x67\x68",O1: "\x46\x6frmatB\x6c\x6fck",iv: "Cut",Iv: "\x43opy",lv: "\x50aste",i1i: "\125nd\x6f",I1i: "Redo",I13: "\x53electAll",Obl: "\x54yping",lbl: "\x42ack",O29: "\x44elete",l29: "Ins\x65\x72tTable",i29: "\x54ableWiz\x61\x72d",ibl: "InsertI\x6d\x61ge",Ibl: "\x49\x6e\x73ertFl\x61\x73h",obm: "\x49nsertMedia",Obm: "I\x6e\x73ertDocu\x6d\x65nt",l1s: "Insert\x53\x79mbol",l1p: "\x49nsertSnippe\x74",o1u: "InsertFor\x6d\x45leme\x6e\x74",o1s: "In\x73\x65rtDate",O1s: "InsertTime",Oy: "\x49nsertRo\x77\x41bove",ly: "I\x6e\x73ertRowB\x65\x6cow",oz: "DeleteR\x6f\x77",iy: "\x49nsertColum\x6e\x4ceft",Iy: "InsertC\x6f\x6cumnRi\x67\x68t",Oz: "\x44\x65leteC\x6f\x6cumn",iz: "Merge\x43\x6flumns",Iz: "\x4d\145rg\x65\x52ows",o10: "\x53\x70litCel\x6c",lz: "DeleteCel\x6c",i2b: "SetCel\x6c\x50ropert\x69\x65s",O2b: "Se\x74\x54ablePro\x70\x65rti\x65s",o29: "Delete\x54\x61ble",O1u: "ToggleTableB\x6f\162de\x72",O2c: "SetImag\x65\x50roper\x74\x69es",i2d: "\x49mageMapDi\x61\x6cog",l2g: "\123et\x4c\x69nkProp\x65\x72tie\x73",i1u: "\x46\x6frmatStri\x70\x70er",i2g: "\x4cinkManag\x65\x72",O2k: "ImageMana\x67\x65r",i2j: "\x46lashManage\x72",i2i: "\x4d\145dia\x4d\x61nager",O2i: "\x44ocumentManag\x65\x72",l2h: "\x46indAn\x64\x52eplac\x65",i2k: "\101bou\x74\x44ialog",l2k: "T\x65\x6dplateMa\x6e\x61ger",I2k: "\x48\x65lp",O1j: "\115odu\x6c\x65Manag\x65\x72",o2l: "\x50agePropert\x69\x65s",I12: "\x50rint",I24: "Spell\x43\x68eck",o1w: "PasteFro\x6d\x57ord",O1w: "\x50asteFr\x6f\x6dWord\x4e\x6fFon\x74sNoSize\x73",O1v: "\x50\x61stePlai\x6e\x54ext",l1w: "\x50asteAsHtml",P: "\x41bsolut\x65\x50ositi\x6f\x6e",ou: "Unlink",it: "In\x73\x65rtOrder\x65\x64Lis\x74",It: "InsertU\x6e\x6frdere\x64\x4cist",I1s: "\111ns\x65\x72tParag\x72\x61ph",O1q: "I\x6e\x73ertCust\x6f\x6dLin\x6b",l1m: "\x54oggleSc\x72\x65enMod\x65",i1j: "\x54oggleDockin\x67",o1p: "Zoo\x6d",oy: "\x41pplyCla\x73\x73",O13: "\x52\x65peatL\x61\x73tCom\x6d\x61nd",lbm: "\x4doveCom\x6d\x61nd",ibm: "\x52esizeCo\x6d\x6dand",O12: "\x45nableT\x61\x62",c: "DELETE",l0: "BACK\x53\x50ACE",Ibm: 112,obn: 113,Obn: 114,lbn: 115,ibn: 116,Ibn: 117,obo: 118,Obo: 119,lbo: 120,ibo: 121,Ibo: 122,obp: 123,Obp: 17,lbp: 16,ibp: 18,Ibp: 13,obq: 36,Obq: 35,lbq: 37,ibq: 39,Ibq: 38,obr: 40,Obr: 33,lbr: 34,ibr: 27,Ibr: 32,obs: 9,Obs: 8,lbs: 46,ibs: 45,Ibs: 93,obt: (1<<0),Obt: (1<<2),lbt: (1<<4),ibt: "\x42",Ibt: "\x44",obu: "\x44B",Obu: "S",lbu: "\x54D",ibu: "\x43USTOM",Ibu: 0,obv: 1,Obv: 2,lbv: 4,ibv: 8,Ibv: 16,obw: 32,Obw: 64,lbw: 128,ibw: 0,i7e: 1,Ibw: 2 } ;;RadEditorNamespace.Utils= {obx:function (l6,propertyName,Obx){if (l6.ownerDocument.defaultView && l6.ownerDocument.defaultView.getComputedStyle){return l6.ownerDocument.defaultView.getComputedStyle(l6,Obx || null)[propertyName]; }else if (l6 && l6.currentStyle){return l6.currentStyle[propertyName]; }return null; } ,w:function (object,lbx){for (var ibx in lbx){object[ibx]=lbx[ibx]; }} ,oas:function (){return false; } ,iaf:function (i8){var i1x=i8.createElement("t\x61ble"); i1x.cellSpacing=0; i1x.cellPadding=0; i1x.border=0; i1x.setAttribute("un\x73\x65lectab\x6ce","on"); i1x.style.cursor="\x64efault"; i1x.onselectstart="r\x65\x74urn fal\x73\x65"; i1x.ondragstart="return false"; var Ibx=i1x.cloneNode( true); return Ibx; } ,oby:function (e){var pageX=e.pageX?e.pageX:e.clientX; var pageY=e.pageY?e.pageY:e.clientY; var srcElement=RadEditorNamespace.Utils.O67(e); for (var i=1; i<arguments.length; i++){var o8=arguments[i]; if (o8.componentFromPoint && ""==o8.componentFromPoint(pageX,pageY)){return true; }else if (srcElement && (o8==srcElement || RadEditorNamespace.Utils.Oby(o8,srcElement))){return true; }}return false; } ,lby:function (iby){ this.length=0; this.Iby= function (iby){ this.length+=(this.obz[this.Obz++]=String(iby)).length; this.lbz=null; return this ; } ; this.ToString= function (){if (this.lbz!=null)return this.lbz; var s=this.obz.join(""); this.obz=[s]; this.Obz=1; this.length=s.length; return this.lbz=s; } ; this.Obz=0; this.obz=[]; this.lbz=null; if (iby!=null)this.Iby(iby); } ,I8q:function (ig,l5,ibz){var i8q=[]; if (null!=ig){if (!ibz && null!=ig && null!=ig.getAttribute && null!=ig.getAttribute(l5)){i8q.push(ig); }for (var i=0; i<ig.childNodes.length; i++){i8q=i8q.concat(this.I8q(ig.childNodes[i],l5)); }}return i8q; } ,SelectElement:function (U,Ob){if (!Ob)return; var t=U.document; if (t.selection){var l1; switch (Ob.tagName){case "\x54\x41BLE":case "\x49MG":case "H\x52":case "\x49NPUT":l1=t.body.createControlRange(); l1.add(Ob); break; default:l1=t.body.createTextRange(); l1.moveToElementText(Ob); break; }if (l1){l1.select(); return true; }}else if (U.getSelection){var l1=t.createRange(); l1.selectNode(Ob); var selection=U.getSelection(); selection.removeAllRanges(); selection.addRange(l1); return true; }return false; } ,oq:function (Ibz,oc0,Oc0){if (!Ibz || !oc0)return; if (Ibz.mergeAttributes){oc0.mergeAttributes(Ibz,Oc0); }else {}} ,Oby:function (parent,lc0){if (!parent || !lc0)return false; var i12=lc0.parentNode; do {if (i12==parent)return true; }while ((i12=i12.parentNode)!=null); return false; } ,I11:function (l6){if (!l6){l6=this ; }var left=0; var top=0; var width=l6.offsetWidth; var height=l6.offsetHeight; if (l6.x){left=l6.x; top=l6.y; }else {while (l6!=null){left+=l6.offsetLeft; top+=l6.offsetTop; l6=l6.offsetParent; }}left=RadEditorNamespace.Utils.O65(left,0); top=RadEditorNamespace.Utils.O65(top,0); width=RadEditorNamespace.Utils.O65(width,0); height=RadEditorNamespace.Utils.O65(height,0); return new RadEditorNamespace.Utils.l65(left,top,width,height); } ,l65:function (left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ,ic0:function (l1y,l8n){if (!l1y)return; l1y.setAttribute("\165nselectable","\x6fn"); l1y.className=l8n?"\x52adESeparato\x72\x48ori\x7a\x6fnt\x61\154": "RadE\x53\x65parato\x72"; } ,Oi:function (value,defaultValue){return (null==value)?defaultValue:value; } ,Ic0:function (keyCode){if (keyCode>=112 && keyCode<=123)return true; if (keyCode>=8 && keyCode<=27)return true; if (keyCode>=32 && keyCode<=46)return true; if (keyCode==93)return true; return false; } ,i99:function (text){for (var i=1; i<arguments.length; i++){text=text.replace(new RegExp("\x5c{"+(i-1)+"\x5c}","\x69g"),arguments[i]); }return text; } ,o66:function (text,value){if (typeof(value)!="st\x72\x69ng")return false; return (0==text.indexOf(value)); } ,oc1:function (text,value){if (typeof(value)!="\x73trin\x67")return false; return (text.lastIndexOf(value)+value.length==text.length-1); } ,Oc1:function (text){return text.replace(/^\s+/ig,""); } ,lc1:function (text){return text.replace(/\s+$/ig,""); } ,Ic:function (text){return (RadEditorNamespace.Utils.Oc1(RadEditorNamespace.Utils.lc1(text))); } ,ic1:function (array,item){array[array.length]=item; } ,Ic1:function (array,item){var oc2= false; for (var i=0; i<array.length; i++){if (item==array[i]){oc2= true; }if (oc2){array[i]=array[i+1]; }}if (oc2){array.length-=1; }} ,I1o:function (l6,I2r,i65){I2r=RadEditorNamespace.Utils.I65(I2r); if (l6.attachEvent){l6.attachEvent(I2r,i65); }else if (l6.addEventListener){l6.addEventListener(I2r,i65, true); }} ,o1n:function (l6,I2r,i65){I2r=RadEditorNamespace.Utils.I65(I2r); if (l6.detachEvent){l6.detachEvent(I2r,i65); }else if (l6.addEventListener){l6.removeEventListener(I2r,i65, true); }} ,I65:function (I2r){I2r=I2r.toLowerCase(); if (document.addEventListener && RadEditorNamespace.Utils.o66(I2r,"o\x6e")){return I2r.substr(2); }else if (document.attachEvent && !RadEditorNamespace.Utils.o66(I2r,"on")){return "on"+I2r; }else {return I2r; }} ,O67:function (e){if (null==e)return null; if (e.srcElement)return e.srcElement; else if (e.target)return e.target; else return null; } ,O66:function (l66){if (!l66)l66=window.event; if (!l66)return false; l66.returnValue= false; l66.cancelBubble= true; if (l66.stopPropagation){l66.stopPropagation(); }return false; } ,o1c:function (l6,tagName){if (null==l6)return null; if (null==tagName)return l6; try {while (l6 && null!=l6.tagName && l6.tagName!=tagName){l6=l6.parentNode; }return ((l6.tagName==tagName)?l6:null); }catch (e){return null; }} ,O24:function (l6){if (l6.outerHTML){return l6.outerHTML; }else {var Oc2=l6.cloneNode( true); var lc2=l6.ownerDocument.createElement("\x44IV"); lc2.appendChild(Oc2); return lc2.innerHTML; }} ,O65:function (I66,defaultValue){if (!defaultValue)defaultValue=0; var o67=parseInt(I66); return (isNaN(o67)?defaultValue:o67); }};;if ("\x75\x6edefine\x64"==typeof(window.RadEditorGlobalArray)){window.RadEditorGlobalArray=[]; }function GetRadEditor(ic2){try {return eval(ic2); }catch (e){return null; }}RadEditorNamespace.o1k= {I96: 1,Ic2: 2,O1k: 4,oc3: 8 } ; function RadEditorInitialize(Oc3,lc3,ic3,Ic3,oc4,Oc4,direction,className,width,height,lc4,ic4,language,Ic4,oc5,Oc5,lc5,ic5,Ic5,oc6,Oc6,lc6,ic6,Ic6,useClassicDialogs,oc7,Oc7,lc7,l6o,ic7,Ic7,oc8,Oc8,overflow,o3l,lc8,ic8,Ic8,oc9,Oc9,lc9,obd,Obf,ic9,Ic9,oca,Oca,lca,documentFilters,ica,Ica,l26,ocb,Ocb,lcb,icb,Icb,occ,Occ,lcc,icc,Icc,ocd,Ocd,lcd,icd,Icd,oce,Oce,lce,ice,Ice,ocf,Ocf,lcf,validationGroup,icf,Icf){oah=new RadEditor(Oc3); oah.ocg=Ice; oah.i26=l26; oah.Ocg=lc3; oah.lcg=ic3; oah.l5f=Ic3; oah.O5f=oc4?oc4: "RadCont\x72ols"; oah.O26=Oc4?Oc4: "\122\x61\144Con\x74rols/Ed\x69\164\x6f\x72/Sk\x69\156s\x2f\x44ef\x61ult\x2f"; oah.Direction=direction; oah.Width=width?width: "\x3600"; oah.Height=height?height: "600"; oah.ClassName=className?className: "RadEC\x6f\x6etent"; oah.icg=(null!=lc4)?lc4:oah.Width; oah.Icg=ic4?ic4: ""; oah.i5f=oca; oah.I5f=Oca; oah.och=oc7>-1?oc7:RadEditorNamespace.o1k.I96; oah.Och=Ic4; oah.lch=oc5; oah.ich=Oc5; oah.I25=language?language: "\x65n_U\x53"; eval(" va\x72\x20loc = \x6c\x6fcal\x69zation_"+oah.I25); oah.Localization=loc; oah.Ich=lc5; oah.oci=ic5; oah.StripAbsoluteAnchorPaths=( true ==Ic5); oah.StripAbsoluteImagesPaths=( true ==oc6); oah.Oci=( true ==lce); oah.lci=( true ==Oc6); oah.ici=( true ==lc6); oah.Ici=( true ==Ocf); oah.ocj=( true ==ice); oah.I5e=Ic6; oah.UseClassicDialogs=( true ==useClassicDialogs); oah.Ocj=Icf!=null?Icf: false; oah.lcj=Oc7!=null?Oc7: false; oah.icj=lc7!=null?lc7: true; oah.Icj=ic7!=null?ic7: true; oah.ock=lcd!=null?lcd: true; oah.Ock=( true ==ic6); oah.l96=( true ==icd); oah.i96=( true ==ocf); oah.lck=lcb!=null?lcb: true; oah.ick=icb!=null?icb: true; oah.Ick=Icb!=null?Icb: true; oah.i3g=l6o?l6o: false; oah.O1b=oc8?oc8: false; oah.ocl=ocb!=null?ocb: false; oah.Ocl=overflow?overflow: "\x61uto"; oah.lcl=Ic7?Ic7:RadEditorNamespace.Ibu; oah.icl=lcf; oah.MediaFilters=lca; oah.DocumentFilters=documentFilters; oah.ImagesFilters=ica; oah.TemplateFilters=Ica; oah.i2c=Ocb; oah.Icl=validationGroup; oah.ocm=icf; if (lc9 && lc9.length>0)oah.Ocm=lc9; if (o3l && o3l.length>0)oah.ColorsArray=o3l; if (lc8 && lc8.length>0)oah.lcm=lc8; if (ic8 && ic8.length>0)oah.icm=ic8; if (oc9 && oc9.length>0)oah.Icm=oc9; if (Ic8 && Ic8.length>0)oah.ocn=Ic8; if (obd && obd.length>0)oah.Ocn=obd; if (ic9 && ic9.length>0)oah.lcn=ic9; oah.icn=Ic9; oah.Icn=Ocd; if (Oc9 && Oc9.length>0){var oco= {} ; var Oco=Oc9.length; for (var i=0; i<Oco; i++){var lco=Oc9[i][1]; var M=Oc9[i][0]; oco[lco.replace(/(.*?)\x2e/ig, function ($1){return $1.toUpperCase(); } )]=M; }oah.ico=oco; }oah.Ico=document.getElementById("Rad\x45ContentHi\x64\x64enTe\x78tarea"+Oc3); oah.Ico.style.display="\x6eone"; oah.Ico.setAttribute("\x69\x64",oah.Id); oah.o2i=document.getElementById("Rad\x45\x43ontent\x54\x65xta\x72\145\x61"+Oc3); oah.o2i.removeAttribute("\x72\x6fws",0); oah.o2i.removeAttribute("c\x6f\x6cs",0); oah.ocp=document.getElementById("\x52adEContent\x49\x66ram\x65"+Oc3); oah.o12=document.getElementById("RadEW\x72\x61pper"+Oc3); oah.Ocp=document.getElementById("\x52adEDesign\x42\x75tto\x6e"+Oc3); oah.lcp=document.getElementById("RadEHtmlB\x75\x74ton"+Oc3); oah.icp=document.getElementById("RadEPrev\x69\x65wBu\x74\x74on"+Oc3); oah.Icp=document.getElementById("Ra\x64\x45CancelB\x75\x74ton"+Oc3); oah.ocq=document.getElementById("\x52adEUp\x64\x61teBut\x74\x6fn"+Oc3); if (oah.IsIE){oah.Ocq=document.getElementById("\x50asteCont\x61\x69ner"+Oc3); oah.Ocq.contentEditable= true; }var l8m=oah.i8m; l8m.lcq=document.getElementById("\124\x6f\x70"+Oc3); l8m.icq=document.getElementById("Left"+Oc3); l8m.Icq=document.getElementById("Righ\x74"+Oc3); l8m.ocr=document.getElementById("Botto\x6d"+Oc3); l8m.Ocr=document.getElementById("\115o\x64\x75le"+Oc3); if (l8m.lcq)l8m.lcq.setAttribute("doc\x6b\x69ng","\x68orizonta\x6c"); if (l8m.icq)l8m.icq.setAttribute("\x64\x6fcking","\x76\145rti\x63\x61l"); if (l8m.Icq)l8m.Icq.setAttribute("\x64ocki\x6e\x67","\x76\x65rtica\x6c"); if (l8m.ocr)l8m.ocr.setAttribute("\x64ocking","\x68orizont\x61\x6c"); if (l8m.Ocr)l8m.Ocr.setAttribute("d\x6f\x63king","horizont\x61\x6c"); var lcr=[oah.Ocp,oah.lcp,oah.icp]; var icr=[RadEditorNamespace.I2h,RadEditorNamespace.Ibh,RadEditorNamespace.obi]; var Icr=["RA\x44\x45DITOR_\x44\x45SIGN\x5fMODE","RADEDITOR_H\x54\x4dL_MO\x44\x45","RADEDI\x54\x4fR_PREV\x49\x45W_M\x4f\x44E"]; var ocs=[(oah.lck || oah.ick),oah.lck,oah.ick]; var Ocs= function (l10,button,I36,lcs,ics){if (button){if (ics)button.style.display="\x6eone"; else {button.onclick= function (){l10.SetMode(I36); return false; } ; button.title=l10.Localization[lcs]; var l2c=button.getElementsByTagName("IMG")[0]; if (l2c)l2c.removeAttribute("\x61lt"); l10.Ics[l10.Ics.length]=button; }}} ; for (var i=0; i<lcr.length; i++){Ocs(oah,lcr[i],icr[i],Icr[i],!ocs[i]); }var oct= function (Oct,button,lct,title){if (!button)return; if ("\x55PDATE"==lct)button.onclick= function (e){Oct.Submit(); RadEditorNamespace.Utils.O66(e); return false; } ; else if ("CA\x4e\x43EL"==lct)button.onclick= function (e){Oct.CancelEdit(); RadEditorNamespace.Utils.O66(e); return false; } ; if (title)button.innerHTML=title; Oct.Ics[Oct.Ics.length]=button; } ; if (oah.Ick){oct(oah,oah.Icp,"\x43ANCEL",oah.Localization["\x43ancelBut\x74\157\x6e"]); oct(oah,oah.ocq,"\125P\x44\x41TE",oah.Localization["U\x70dateButton"]); }else {if (oah.Icp)oah.Icp.style.display="\x6eone"; if (oah.ocq)oah.ocq.style.display="none"; }if (occ)oah.ict("OnClientLoa\x64",occ); if (Occ)oah.ict("OnClientCom\x6d\x61ndE\x78\x65cu\x74\x69ng",Occ); if (lcc)oah.ict("\x4fnClie\x6e\x74Comm\x61\x6edEx\x65\x63ute\x64",lcc); if (icc)oah.ict("OnCli\x65\x6etMode\x43\x68ange",icc); if (Icc)oah.ict("OnClientSub\x6d\x69t",Icc); if (ocd)oah.ict("OnClien\x74\x43ance\x6c",ocd); if (oah.IsIE && oah.O1b){oah.Ict("Enter","E\x4e\x54ER"); oah.Ict("\x53\x68iftEn\x74\x65r","S\x48\x49FT+ENTE\x52"); oah.Ict(RadEditorNamespace.I1s,"CTRL+ENTE\x52"); }if (oah.ock){oah.Ict(RadEditorNamespace.O12,"T\x41\x42"); }oah.Ict(RadEditorNamespace.i1i,"\x43TRL+Z"); oah.Ict(RadEditorNamespace.I1i,"\x43\x54RL+Y"); oah.Ict(RadEditorNamespace.I13,"CTRL+A"); oah.Ict(RadEditorNamespace.Iv,"\x43TRL+C"); oah.Ict(RadEditorNamespace.lv,"\x43\x54RL+V"); oah.Ict(RadEditorNamespace.iv,"\x43TRL+X"); oah.Ict(RadEditorNamespace.Ou,"\x43TRL+B"); oah.Ict(RadEditorNamespace.lu,"\x43TRL+I"); oah.Ict(RadEditorNamespace.iu,"CTRL+U"); oah.Ict(RadEditorNamespace.Iv,"\x43TRL+INS"); oah.Ict(RadEditorNamespace.lv,"SHIF\x54\x2bINS"); oah.Ict(RadEditorNamespace.l1m,"\x4611"); oah.Ict(RadEditorNamespace.i2g,"CT\x52\x4c+K"); oah.Ict(RadEditorNamespace.O2k,"\x43TRL+G"); if (oah.Oci)oah.FiltersManager.Add(new ocu()); if (oah.Ici)oah.FiltersManager.Add(new Ocu()); if (oah.StripAbsoluteAnchorPaths)oah.FiltersManager.Add(new lcu("\x41",oah.Ich)); if (oah.StripAbsoluteImagesPaths)oah.FiltersManager.Add(new lcu("IMG",oah.oci)); if (oah.lci)oah.FiltersManager.Add(new icu()); if (oah.ici!= true)oah.FiltersManager.Add(new Icu()); if (0==RadEditorGlobalArray.length){RadEditorNamespace.Utils.I1o(window,"un\x6c\x6fad", function (){RadEditorNamespace.ocv(); } ); }RadEditorNamespace.Ocv(oah); var lcv=RadEditorNamespace.icv(); if (lcv>0){RadEditorNamespace.Icv(oah); }else {RadEditorNamespace.Utils.I1o(window,"\x6coad", function (){RadEditorNamespace.Icv(oah); } ); }if (oah.icj){oah.ocw=Icd; oah.Ocw=RadEditorNamespace.lcw.o(oah,oah.ocw); }var popup=window["RadEdit\x6f\x72Popu\x70\x49nsta\x6ece"]; popup.AddStyleSheet(oah.O26+"C\x6f\x6etrols.c\x73\x73"); oah.icw( false); var Icw=oah.ocx(); oah.Ocx(Icw, true); oah.lcx(); RadEditorNamespace.icx(oah); oah.lah=Obf; if (oah.Iag)oah.Iag(oah); oah.SetSize(oah.Width,oah.Height); oah.SetEditable( true); if (oah.ocj){oah.SetFocus(); }else if (oah.IsIE){RadEditorNamespace.Icx(oah); }oah.ocy("\x4fnClie\x6e\x74Load"); return oah; }RadEditorNamespace.Icx= function (l10){var I1x=l10.l19.createTextRange(); try {var l1=document.body.createTextRange(); l1.moveStart("t\x65xtedit",l1.text.length); l1.collapse( true); l1.select(); }catch (e){}} ; RadEditorNamespace.icv= function (){if (typeof(RadCallbackNamespace)!="unde\x66\x69ned" && RadCallbackNamespace.attachEvent){return 1; }else if (window["OnCa\x6c\x6cbackR\x65\x71uest\x53tart"]){return 2; }return 0; } ; RadEditorNamespace.Icv= function (Ocy){var lcv=RadEditorNamespace.icv();if (lcv==0){return; }var lcy= function (){try {Ocy.l9p(RadEditorNamespace.O9r); }catch (e){}try {RadEditorNamespace.icy(Ocy); }catch (ex){}} ; var Icy= function (){Ocy.ocz= false; Ocy.Ocz= false; } ; if (lcv==1){RadCallbackNamespace.attachEvent("onrequ\x65ststar\x74",lcy); RadCallbackNamespace.attachEvent("onre\x73\x70onsee\x6e\x64",Icy); }else if (lcv==2){var lcz=window.OnCallbackRequestStart; var icz=window.OnCallbackResponseEnd; window.OnCallbackRequestStart= function (){lcz(); lcy(); };window.OnCallbackResponseEnd= function (){icz(); Icy(); };}} ; RadEditorNamespace.Icz= function (od0){if ("\x75ndefined"==typeof(RadEditorGlobalArray)){window.RadEditorGlobalArray=[]; }for (var i=0; i<RadEditorGlobalArray.length; i++){if (RadEditorGlobalArray[i].Id==oah.Id){return i; }}return -1; } ; RadEditorNamespace.Ocv= function (oah){var Od0=RadEditorNamespace.Icz(oah.Id); if (Od0==-1){oah.ld0(oah); RadEditorGlobalArray[RadEditorGlobalArray.length]=oah; }else {var id0=RadEditorGlobalArray[Od0]; if (id0 && id0.Dispose)id0.Dispose(); RadEditorGlobalArray[Od0]=oah; }} ; RadEditorNamespace.Id0= function (form){var od1= function (){var Od1=RadEditorGlobalArray; for (var i=0; i<Od1.length; i++){var ld1=Od1[i].Id; var l10=GetRadEditor(ld1); RadEditorNamespace.icy(l10); }} ; var onSubmit=form.id1; form.id1= function (){od1(); if (typeof(onSubmit)=="f\x75nction")onSubmit(); return true; } ; if ("undefine\x64"!=typeof(Sys) && Sys.WebForms && Sys.WebForms.PageRequestManager){var Id1=Sys.WebForms.PageRequestManager._onFormSubmit; Sys.WebForms.PageRequestManager._onFormSubmit= function (){od1(); if (Id1)Id1.call(Sys.WebForms.PageRequestManager); } ; }} ; RadEditorNamespace.od2= function (Od2){var ld2=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var l10=GetRadEditor(Od2); RadEditorNamespace.icy(l10); var id2= true; if (l10.ocl && (typeof(Page_ClientValidate)=="\146\x75nction")){id2=Page_ClientValidate(); }if (id2){ld2(eventTarget,eventArgument); }} ; } ; RadEditor.prototype.ld0= function (l10){var Od2=l10.Id; RadEditorNamespace.Id2(Od2); var form=document.getElementById(l10.ocg); if (!form)form=document.forms[0]; if (RadEditorGlobalArray.length==0){RadEditorNamespace.Id0(form); }var od3= false; try {RadEditorNamespace.Od3(Od2,form); }catch (Ia){od3= true; }if (od3){RadEditorNamespace.od2(Od2); }RadEditorNamespace.Utils.I1o(form,"\157\x6esubmit", function (){var l10=GetRadEditor(Od2); RadEditorNamespace.icy(l10); } ); form=null; } ; RadEditorNamespace.Id2= function (Od2){if (typeof(Page_ClientValidate)=="\x66\165nc\x74\x69on"){var ld3=Page_ClientValidate; Page_ClientValidate= function (validationGroup){var l10=GetRadEditor(Od2); if (l10.IsIE && !l10.id3()){l10.Id3(""); }else {l10.Id3(l10.GetHtml( true)); }var od4=ld3(validationGroup); if (od4){RadEditorNamespace.icy(l10); }else {l10.Ocz= true; }return od4; } ; }} ; RadEditorNamespace.Od3= function (Od2,form){var Od4=form.submit; form.submit= function (){try {var l10=GetRadEditor(Od2); RadEditorNamespace.icy(l10); var ld4=this.submit; this.submit=Od4; var id4=this.submit(); this.submit=ld4; }catch (Ia){}} ; } ; RadEditorNamespace.icy= function (l10){if (l10.Ocz){l10.Ocz= false; return; }if (l10.ocz)return; l10.icw( true); l10.ocz= true; } ; RadEditor.prototype.Id4= function (o8){if (this.icg)o8.style.width=this.icg; else o8.style.width=parseInt(this.Width)-10; } ; RadEditor.prototype.I1j= function (od5){return od5&this.och? true : false; } ; RadEditorNamespace.icx= function (l10){if (l10.I1j(RadEditorNamespace.o1k.Ic2)){l10.i1k=RadEditorNamespace.Od5.o(l10); }else if (l10.I1j(RadEditorNamespace.o1k.O1k)){RadEditorNamespace.ld5.o(l10); }else if (l10.I1j(RadEditorNamespace.o1k.oc3)){RadEditorNamespace.id5.o(l10); }else {var Id5= function (){var od6=l10.i8m.lcq; l10.Id4(od6); var Od6= function (){l10.ld6(l10.i2h==RadEditorNamespace.I2h); } ; l10.AttachEventHandler(RadEditorNamespace.Iai,Od6); var id6=l10.Id6(); for (var i=0; i<id6.length; i++){var toolbar=id6[i]; var od7=l10.O1o(toolbar.Od7); if (!od7)od7=l10.i8m.lcq; toolbar.o8y=l10.Iae(od7); var ld7=toolbar.O1m(); od7.appendChild(ld7); if (toolbar.Iad){l10.o8h(toolbar.O1m(),O8h= true ,l8h= true ,i8h= false); }}} ; Id5(); }RadEditorNamespace.Utils.I1o(window,"\x6f\x6eload", function (){l10.id7( false); l10.l9p(RadEditorNamespace.Oag); l10.l9p(RadEditorNamespace.o9m); } ); } ; RadEditor.prototype.Ocx= function (Icw,Id7){var od8=""; var I1p=null; if (-1!=Icw.toLowerCase().indexOf("<\x68tml")){ this.FullPage= true; I1p=Icw; var Od8=/(\x3c\x21\x44\x4f\x43\x54\x59\x50\x45(.|\x0a)*?\x3e)(.|\x0a)*/g; this.ld8=(I1p.match(Od8))?I1p.replace(Od8,"$\x31"): ""; }else this.FullPage= false; if (null!=I1p || true ==Id7){var oah=this ; var id8= function (){oah.Document=oah.ocp.contentWindow.document; oah.ContentWindow=oah.ocp.contentWindow; oah.l19=oah.Document.body; var Id8=RadEditorNamespace.GetCssClassServer(); Id8.od9(); TelerikNamespace.Utils.AddStyleSheet(oah.O26+"EditorC\x6f\x6eten\x74\x41rea.\x63ss",oah.Document); if (oah.Ocm!=null && oah.Ocm.length>0){var i8q=oah.Ocm; for (var i=0; i<i8q.length; i++){var url=(i8q[i].toLowerCase().indexOf("http:")>-1) || (i8q[i].charAt(0)=="/")?i8q[i]:oah.l5f+i8q[i]; if (url){TelerikNamespace.Utils.AddStyleSheet(url,oah.Document); }}}else if (!oah.FullPage){Id8.Od9(document,oah.Document,oah.ld9); }oah.id9(); oah.Icj=!oah.Icj; oah.l1u(); if (oah.FullPage){oah.Id3(Id9.body.innerHTML); }od8=oah.ocx(); } ; RadEditorNamespace.Utils.I1o(this.ocp,"l\x6fad", function (){if (oda){id8(); }} ); if (!I1p)I1p="\x3chead><s\x74\x79le><\x2f\x73ty\x6ce></hea\x64\x3e<bo\x64\171\x3e</b\x6fdy>"; var Id9=this.ocp.contentWindow.document; Id9.open(); Id9.write(I1p); Id9.close(); var oda= false; if (Id9.body)id8(); else oda= true; }else od8=Icw; if (TelerikNamespace.Utils.DetectBrowser("safari")){if (this.Height && this.Height.indexOf("\x25")==-1){ this.ocp.style.height=this.Height; }else {var Oda=this.ocp.parentNode; var oDiv=this.Document.createElement("\x64iv"); oDiv.style.height="\x31\x300%"; oDiv.innerHTML=" "; Oda.appendChild(oDiv); var i1o=RadEditorNamespace.Utils.I11(Oda).height; oDiv.parentNode.removeChild(oDiv); this.ocp.style.height=i1o; }}try {var lda=this.l19; lda.innerHTML="\x3cspan>&n\x62\x73p;</s\x70\x61n>"+od8; lda.removeChild(lda.firstChild); }catch (e){ ; }} ; RadEditor.prototype.ida= function (){if (this.FullPage && this.i2h!=RadEditorNamespace.Ibh){var t=this.Document; var Ida=t.getElementsByTagName("\x4cINK"); var odb=[]; for (var i=0; i<Ida.length; i++){var I21=Ida[i]; if (I21.href){if (I21.href.indexOf("\105\x64itorConte\x6e\x74Area\x2e\143s\x73")>0){odb[odb.length]=I21; }else if (this.Ocm && this.Ocm.length>0){var i8q=this.Ocm; for (var I7r=0; I7r<i8q.length; I7r++){if (I21.href.indexOf(i8q[I7r])>=0)odb[odb.length]=I21; }}}}for (var i=0; i<odb.length; i++)odb[i].parentNode.removeChild(odb[i]); var Odb=t.getElementsByTagName("\x42ODY")[0]; if (Odb){Odb.removeAttribute("con\x74\x65ntEdit\x61\x62le"); var className=Odb.className.toLowerCase(); if ("radecont\x65\x6etbor\x64\x65red"==className || "radecon\x74\x65nt"==className){Odb.removeAttribute("class",0); Odb.removeAttribute("classname",0); }}var ldb=t.getElementsByTagName("\x48TML")[0]; var idb=(this.ld8?this.ld8: "")+(ldb.outerHTML?ldb.outerHTML:RadEditorNamespace.Utils.O24(ldb)); return idb; }else {return this.GetHtml(); }} ; function RadEditor(id){ this.Icm=[["\103le\x61\x72 Fo\x72\x6datti\x6eg","\x62\157dy"],["\x4eormal","N\x6f\x72mal"],["\x3ch1>Headin\x67\x201</h\x31\x3e","<h1>"],["\x3c\x682>Headi\x6e\x67 2<\x2f\x682>","<h2>"],["<h3>Heading\x20\x33</h3\x3e","<h3>"],["<h4>H\x65ading 4</\x68\x34>","\x3ch4>"],["<h5>\x48\x65adin\x67\x205</h\x35>","\x3ch5>"],["<dir>Direc\x74\x6fry L\x69\x73t</\x64ir>","\x3cdir>"],["<menu>Me\x6e\x75 Lis\x74\x3c/men\x75\076","\x3c\155enu\x3e"],["<pre>Format\x74\x65d</p\x72\x65>","<pre>"],["<add\x72\x65ss>Add\x72\x65ss<\x2f\x61ddr\x65\163s\x3e","<address>"]]; this.Id=id; this.Ocg=""; this.i2h=RadEditorNamespace.I2h; this.IsIE=document.all? true : false; this.Idb= false; this.och=RadEditorNamespace.o1k.I96; this.UseClassicDialogs= false; this.odc= true; this.ocl= false; this.icj= true; this.ock= true; this.lck= true; this.ick= true; this.Ick= true; this.Odc=null; this.ldc=null; this.idc=null; this.Idc=null; this.odd=null; this.Odd=null; this.Document=null; this.ContentWindow=null; this.l19=null; this.ocp=null; this.o2i=null; this.Ico=null; this.o12=null; this.ocq=null; this.Icp=null; this.Ocp=null; this.lcp=null; this.icp=null; this.ldd=null; this.idd=null; this.Width=null; this.Height=null; this.ClassName=""; this.LastClassName=""; this.l5f=""; this.O5f=""; this.O26=""; this.Ocl=""; this.i2c=""; this.Direction=""; this.Ich=""; this.oci=""; this.lci= false; this.MediaFilters=null; this.DocumentFilters=null; this.ImagesFilters=null; this.TemplateFilters=null; this.Ocm=[]; this.ico=null; this.Ocn=[]; this.lcn=[]; this.i8m= {} ; this.lah=[]; this.o1m=[]; this.Idd=[]; this.Oat=[]; this.icn=[]; this.ode=[]; this.Ode=[]; this.lde=[]; this.ide=[]; this.Ics=[]; this.Localization=null; this.Ocw=null; this.l13=RadEditorNamespace.Ide.o(this ); this.odf=RadEditorNamespace.Odf.o(); this.FiltersManager=RadEditorNamespace.ldf.o(); this.idf= false; } ; RadEditor.prototype.ColorsArray=["","\043ffff00","#00ff00","\x23add8\x65\x36","\x23\x3008000","#808080","\x23\x66fd700","\x23ffe4e1","#00ffff","\x23\x387ceeb","\x230000f\x66","\x23a9a9a9","\x23\146fa5\x30\x30","\x23ffc0cb","#a52\x61\x32a","#008080","\x23000080","#c0c0c0","\x23ff0000","\x23c71585","#8b0000","#4b0082","\x23000000","\x23ffffff"]; RadEditor.prototype.lcm=["\124i\x6d\x65s New \x52\157ma\x6e","MS San\x73\x20Serif","Tahoma","Ver\x64\x61na","Ari\x61\x6c","Courier Ne\x77"]; RadEditor.prototype.icm=[1,2,3,4,5,6,7]; RadEditor.prototype.ocn=["\x26#8364;","¢","\x26\x23163;","\x26#165;","\x26\x23164;","\x26\x23169;","\x37\x34;","\x26\x238482;","\x26#177;","\x26ne;","\x37\x376;","\x26\043\x38\x3804;","Ͱ\x35\x3b","÷","\x31\x35;","∞","½","\x26\x23188;","¾","\x26#178;","\x39\x3b","‰","\x26\x23182;","§","&#\x39\x345;","\x26#946;","\x26\x23916;","µ","\x26\x23937;","&\x23\x38721;","Ø","&a\x6e\x67;","\x36\x3b","«","»","&#\x31\x383;","R\x32\x36;","†\x3b","\x26#8225;","\x26#402;"]; RadEditor.prototype.ict= function (I2r,O2s){if (!O2s)return; else this[I2r]=O2s; };RadEditor.prototype.ocy= function (I2r){try {var Idf=this[I2r]; if (!Idf){return; }else if (typeof(Idf)=="string"){Idf=eval(Idf); }var odg=this.ocy.arguments.length; if (odg<2){return Idf(this ); }else {var Odg=this.ocy.arguments; var ldg=Odg[1]; var idg=odg>2?Odg[2]:null; var Idg=odg>3?Odg[3]:null; return Idf(this,ldg,idg,Idg); }}catch (e){alert("Exception\x20whil\x65\x20exe\x63uting c\x6c\151\x65\156t\x20\145\x76ent "+I2r+" Error\x3a"+e.message); } ; return true; } ; RadEditor.prototype.id3= function (){var odh= true; try {var content=this.GetText(); content=RadEditorNamespace.Utils.Ic(content); if (!content){odh= false; var oDiv=document.createElement("\x44\x49\x56"); oDiv.innerHTML=this.GetHtml(); var Odh=oDiv.childNodes; for (var ldh=0; ldh<Odh.length; ldh++){var o8=Odh[ldh]; if (o8 && o8.nodeType==1){odh= true; break; }}}else odh= true; }catch (e){ ; }return odh; };RadEditor.prototype.idh= function (){var id2=(this.ocl && (typeof(Page_ClientValidate)=="f\x75nctio\x6e"))?Page_ClientValidate(this.Icl): true; if (id2 && this.Ocg){eval(this.Ocg); }} ; RadEditor.prototype.Dispose= function (){var l10=this ; if ( true ==l10.idf)return; l10.idf= true; l10.id7( true); try {var Idh=l10.Oat; for (var i=0; i<Idh.length; i++){Idh[i].Dispose(); Idh[i]=null; }}catch (e){} ; try {if (l10.Ocw)l10.Ocw.Dispose(); }catch (e){alert("Excep\x74ion\x20Context \x4d\x65n\x75\x73"+e.description); } ; try {var I1l=l10.o1m; for (var i=0; i<I1l.length; i++){if (I1l[i].Dispose)I1l[i].Dispose(); }}catch (e){alert("\x45xceptio\x6e\x20when\x20\x44is\x70\x6fsin\x67\x20Mod\x75\x6ce\x73 "+e.description); } ; var odi=l10.Ics; for (var i=0; i<odi.length; i++){odi[i].onclick=null; odi[i]=null; }l10.Odi(); for (var ibx in l10){if (typeof(l10[ibx])!="\x66unction")l10[ibx]=null; }} ; RadEditorNamespace.ocv= function (){var ldi=RadEditorGlobalArray; for (var I7r=0; I7r<ldi.length; I7r++){try {var l10=ldi[I7r]; l10.Dispose(); }catch (e){} ; }if (RadEditorNamespace.O8g && RadEditorNamespace.O8g.I8p)RadEditorNamespace.O8g.I8p(); } ; RadEditor.prototype.id7= function (O96){if (this.o96)this.o96(O96); } ; RadEditor.prototype.i98= function (I){var module; for (var j=0; j<this.o1m.length; j++){module=this.o1m[j]; if (module.T==I){return module; }}return null; } ; RadEditor.prototype.o8h= function (o8,O8h,l8h,i8h){if (!this.i96)return; RadEditorNamespace.O8g.o8h(o8,O8h,l8h,i8h); } ; RadEditor.prototype.lcx= function (){if (!this.i96)return; var idi=this.i8m; for (var item in idi){var lau=idi[item]; if (lau && lau.tagName!=null){RadEditorNamespace.O8g.O90(lau); }}RadEditorNamespace.O8g.O8k(this.O26+"\102\x75ttons\x2f\x74ran\x73\x70.g\x69\x66"); } ; RadEditor.prototype.O1o= function (Idi){var Ob=null; if (Idi){odj=Idi.toLowerCase(); switch (odj){case "\x74op":Ob=this.i8m.lcq; break; case "\x6c\145ft":Ob=this.i8m.icq; break; case "right":Ob=this.i8m.Icq; break; case "bottom":Ob=this.i8m.ocr; break; case "module":Ob=this.i8m.Ocr; break; default:Ob=document.getElementById(Idi); break; }}return Ob; } ; RadEditor.prototype.Iae= function (Odj){if (!Odj)return null; var docking=Odj.getAttribute("docking"); if (docking && "\x76ert\x69\x63al"==docking){return true; }} ; RadEditor.prototype.l1u= function (){if (this.Icj){ this.Ib3(this.ClassName); this.Icj= false; }else { this.Ib3("RadECo\x6e\x74entBor\x64\x65red"); this.Icj= true; }var i10=this.GetToolByName(RadEditorNamespace.O1u); if (i10 && i10.SetState)i10.SetState(this.Icj?RadEditorNamespace.R:RadEditorNamespace.r); } ; RadEditor.prototype.Ib3= function (className){ this.l19.className=className; this.LastClassName=className; } ; RadEditor.prototype.O2l= function (ldj,idj){var o3s=this.Localization[ldj]; if (!o3s)return idj; else return o3s; } ; RadEditor.prototype.Idj= function (o43){return (this.O26+"\x42\x75\x74tons\x2f"+o43); } ; RadEditor.prototype.SetEditable= function (odk){if (this.IsIE){ this.l19.contentEditable=odk; }else {try { this.Document["designMode"]=odk?"\x6f\x6e": "\x6f\x66f"; }catch (e){}}};RadEditor.prototype.GetText= function (){var content=""; switch (this.i2h){case RadEditorNamespace.I2h:case RadEditorNamespace.obi:if (this.IsIE){content=this.l19.innerText; }else {var i1y=this.l19.innerHTML; content=i1y?i1y.replace(/\x3c\x2f?[^\x3e]*\x3e/ig,""): ""; }break; case RadEditorNamespace.Ibh:if (this.IsIE){var span=document.createElement("\x53PAN"); span.innerHTML=this.o2i.value; content=span.innerText; }else {var i1y=this.o2i.value; content=i1y.replace(/\x3c\x2f?[^\x3e]*\x3e/ig,""); }break; }return content; } ; RadEditor.prototype.IsVisible= function (){return (this.o12.style.display!="\156\157ne"); } ; RadEditor.prototype.Submit= function (){if ( false ==this.ocy("\x4fnClientSub\x6d\x69t"))return; this.idh(); } ; RadEditor.prototype.CancelEdit= function (){if ( false ==this.ocy("OnClie\x6e\x74Cance\x6c"))return; this.icw( true); if (!this.lcg)this.lcg="h\x69\x73tory.ba\x63\x6b()"; eval(this.lcg); } ; RadEditor.prototype.SetFocus= function (){try {if (this.i2h==RadEditorNamespace.I2h){ this.ContentWindow.focus(); }else if (this.i2h==RadEditorNamespace.Ibh)this.o2i.focus(); }catch (e){} ; } ; RadEditor.prototype.SetActive= function (){if (this.IsIE){var Odk=this.ocp; if (Odk && Odk.setActive)Odk.setActive(); }} ; RadEditor.prototype.SetSize= function (width,height,ldk){width=(""+width); height=(""+height); if (-1==width.indexOf("\x25")){width=parseInt(width); if (isNaN(width)){width=300; }width=width+"px"; }if (-1==height.indexOf("\x25")){height=parseInt(height); if (isNaN(height)){height=300; }height=height+"\x70x"; }var i1m=this.o12; if ( false !=ldk){ this.idk=width; this.l9p(RadEditorNamespace.Oag); this.idk=null; }i1m.style.width=width; i1m.style.height=height; this.Idk(i1m,height); } ; RadEditor.prototype.Oaf= function (){if (this.idk)return parseInt(this.idk); var i11=RadEditorNamespace.Utils.I11(this.ocp); return i11.width; } ; RadEditor.prototype.GetWidth= function (){var i11=RadEditorNamespace.Utils.I11(this.o12); return i11.width; } ; RadEditor.prototype.GetHeight= function (){var i11=RadEditorNamespace.Utils.I11(this.o12); return i11.height; } ; RadEditor.prototype.Idk= function (o8,height){if (this.IsIE && "CSS1C\x6fmpat"==document.compatMode){var i11=RadEditorNamespace.Utils.I11(o8); var l1o=(i11.height-parseInt(o8.style.height)); if (l1o>0){var odl=(parseInt(o8.style.height)-l1o); if (odl>0)o8.style.height=odl+"px"; }}} ; RadEditor.prototype.SetVisible= function (visible){ this.o12.style.display=(visible?"": "\x6e\x6f\x6ee"); if (visible && !this.IsIE){ this.SetEditable( true); }} ; RadEditor.prototype.GetClipboardAsHtml= function (){var Odl=this.Ocq; if (!this.ldl){try {Odl.parentNode.removeChild(Odl); document.body.appendChild(Odl); }catch (e){} this.ldl= true; }Odl.innerHTML=""; Odl.setActive(); document.selection.createRange().execCommand("P\x61ste",null); return Odl.innerHTML; } ; RadEditor.prototype.GetSelectionHtml= function (){return this.GetSelection().o1r(); } ; RadEditor.prototype.GetSelection= function (){return RadEditorNamespace.ib.o(this.ContentWindow); } ; RadEditor.prototype.GetContentArea= function (){return this.l19; } ; RadEditor.prototype.GetDocument= function (){return this.Document; } ; RadEditor.prototype.GetMode= function (){return this.i2h; } ; RadEditor.prototype.GetToolByName= function (name){var Idh=this.Oat; var length=Idh.length; for (var i=0; i<length; i++){if (name==Idh[i].Name)return Idh[i]; }return null; } ; RadEditor.prototype.PasteHtml= function (content,I,O7,idl){if (RadEditorNamespace.obi==this.i2h)return; if (RadEditorNamespace.I2h==this.i2h){ this.SetFocus(); this.i15(RadEditorNamespace.o7.o(I,this.ContentWindow,content,O7)); if (idl!= false)this.l9p(RadEditorNamespace.o9m,null); }else if (RadEditorNamespace.Ibh==this.i2h){if (this.IsIE){ this.o2i.setActive(); var l1=document.selection.createRange(); l1.text=content; }else {var Idl=this.o2i; if (Idl.setSelectionRange){var odm=Idl.selectionStart; var Odm=Idl.selectionEnd; var o25=Idl.value.substring(odm,Odm); var ldm=content; Idl.value=Idl.value.substring(0,odm)+ldm+Idl.value.substring(Odm); Idl.setSelectionRange(odm+ldm.length,odm+ldm.length); this.SetFocus(); return false; }}}} ; RadEditor.prototype.Iau= function (obb,idm,t,Idm,odn,l23,Odn){if (!idm)idm=this ; if (!t)t=this.Document; var ldn=this.Localization[obb]; if (!ldn)ldn=obb; if ( false !=odn){if (!Idm)Idm=this.Idj(obb+".\x67i\x66"); }var l9s= {GetController:function (){return idm; } ,Document:t,Name:obb,T:ldn,oa5:Idm,Iap: ( false ==odn? false : true),oaq: ( false ==l23? false : true),Oaq:Odn } ; O27=RadEditorNamespace.ia5.o(l9s); O27.Create(); return O27; } ; RadEditor.prototype.ocx= function (){return this.Ico.value; } ; RadEditor.prototype.Id3= function (M){if (this.Ico.innerText!=null){ this.Ico.innerText=M; }else { this.Ico.value=M; }} ; RadEditor.prototype.SetMode= function (I36){if (!I36)I36=RadEditorNamespace.I2h; if (I36==this.i2h || (I36!=RadEditorNamespace.Ibh && I36!=RadEditorNamespace.I2h && I36!=RadEditorNamespace.obi)){return; }if ( false ==this.ocy("\x4fnClientMod\x65\x43hang\x65"))return; var i11=RadEditorNamespace.Utils.I11(this.o12); var height=i11.height; var width=i11.width; var content=this.ida(); if (content!=null)this.Id3(content); this.i2h=I36; var idn=null; var Idn=RadEditorNamespace.Utils.o1c(this.o2i,"TABLE"); if (Idn)idn=RadEditorNamespace.Utils.I11(Idn).height; this.odo(I36==RadEditorNamespace.Ibh?this.o2i: this.ocp); this.Odo(I36); this.ldo(I36==RadEditorNamespace.Ibh); this.ido(); this.SetEditable(I36==RadEditorNamespace.I2h); try { this.l9p(RadEditorNamespace.Iai); }catch (e){} ; if (I36==RadEditorNamespace.I2h){ this.Ib3(this.LastClassName); this.SetActive(); this.SetFocus(); this.SetSize(width,height, false); this.l9p(RadEditorNamespace.o9m); }else if (I36==RadEditorNamespace.Ibh){if (this.IsIE && "CSS1Comp\x61\x74"==document.compatMode && null!=idn){var i1o=idn-10-RadEditorNamespace.Utils.I11(this.i8m.ocr).height; if (i1o>0){ this.o2i.style.height=i1o+"px"; this.Idk(this.o2i,i1o); }if (this.o11){ this.o2i.style.width="\x3100%"; }else this.o2i.style.width=this.GetWidth()-10; } this.SetFocus(); }else if (I36==RadEditorNamespace.obi){ this.l19.className=this.ClassName; this.SetSize(width,height, false); this.Ido(this.Document, false); }} ; RadEditor.prototype.Ido= function (i8,enable){if (!enable){var Ida=i8.links; var odp= function (){return false; } ; for (var i=0; i<Ida.length; i++){Ida[i].onclick=odp; }}};RadEditor.prototype.Odo= function (number){var array=[this.Ocp,this.lcp,this.icp]; for (var i=0; i<array.length; i++){if (array[i]){array[i].className=(i==(number-1))?"\x52\x61\144\x45ToggleB\x75\x74t\x6f\156P\x72\x65sse\x64": "Rad\x45\x54oggleB\x75\x74ton"; }}} ; RadEditor.prototype.odo= function (area){var Odp=(area==this.ocp); var iab=(Odp?this.ocp: this.o2i); var ldp=(Odp?this.o2i: this.ocp); if (iab==this.ocp){iab.style.width="\x31\060\x30\x25"; iab.style.height="\x3100%"; }else iab.style.display="\x62lock"; if (ldp==this.ocp){ldp.style.width="\x30px"; ldp.style.height="0px"; }else ldp.style.display="none"; } ; RadEditor.prototype.SetHtml= function (content,title,idp){var o9p=RadEditorNamespace.L.o(title,this.ContentWindow); this.Id3(content); this.ido(); this.i15(o9p,idp); this.l9p(RadEditorNamespace.o9m,null); } ; RadEditor.prototype.GetHtml= function (Idp){var content=""; if (this.i2h==RadEditorNamespace.I2h || this.i2h==RadEditorNamespace.obi){content=this.l19.innerHTML; if (this.IsIE){if (this.l19.firstChild && ("\120"==this.l19.firstChild.tagName) && (this.l19.childNodes.length==1) && (this.l19.innerHTML.substring(0,3).toLowerCase()=="\x3cp>")){content=this.l19.firstChild.innerHTML; }}else {if (this.l19.childNodes.length==1 && this.l19.firstChild.tagName && "\x62r"==this.l19.firstChild.tagName.toLowerCase()){content=""; }}}else if (this.i2h==RadEditorNamespace.Ibh){ this.odq(); content=this.o2i.value; }if ( true ==Idp){content=this.FiltersManager.GetHtmlContent(content); }return content; } ; RadEditor.prototype.ido= function (){var content=this.ocx(); if (this.i2h==RadEditorNamespace.I2h || this.i2h==RadEditorNamespace.obi){var od8=this.i2h==RadEditorNamespace.I2h?this.FiltersManager.GetDesignContent(content): this.FiltersManager.GetPreviewContent(content); this.Ocx(od8); }else if (RadEditorNamespace.Ibh){var od8=this.FiltersManager.GetHtmlContent(content); this.o2i.value=od8; } this.ocz= false; return; } ; RadEditor.prototype.icw= function (Odq){if (Odq){var ldq=this.ida(); try {ldq=this.FiltersManager.GetHtmlContent(ldq); }catch (e){ ; }var idq=this.ocn; var oDiv=document.createElement("div"); for (var i=0; i<idq.length; i++){oDiv.innerHTML=idq[i]; if (oDiv.innerHTML){ldq=ldq.replace(oDiv.innerHTML,idq[i]); }}ldq=TelerikNamespace.Utils.Idq(ldq); this.Id3(ldq); this.o2i.value=""; }else {var odr=TelerikNamespace.Utils.o1q(this.ocx()); try {odr=this.FiltersManager.GetDesignContent(odr); }catch (e){ ; } this.Id3(odr); }} ; RadEditor.prototype.Odr= function (i8){if (null==i8)i8=document; var ldr=RadEditorNamespace.GetCssClassServer(); var idr=ldr.Odr(i8); var idr=this.Idr(idr); return idr; } ; RadEditor.prototype.GetCssClassesByTagName= function (ods,oa0){var ldr=RadEditorNamespace.GetCssClassServer(); var idr=ldr.GetCssClassesByTagName(ods,oa0); idr=this.Idr(idr); return idr; } ; RadEditor.prototype.Idr= function (Ods){var lds=[]; if (Ods && this.ico){for (var index=0; index<Ods.length; index++){var i3x=Ods[index]; if (Ids=this.odt(i3x.O3y.selectorText)){i3x.l3y=Ids; lds[lds.length]=i3x; }}return lds; }else return Ods; } ; RadEditor.prototype.odt= function (Odt){if (!Odt || !this.ico)return null; return this.ico[Odt.replace(/(.*?)\x2e/ig, function ($1){return $1.toUpperCase(); } )]; } ; RadEditor.prototype.o9w= function (M){var Ob5=this.odt("\x2e"+M); if (!Ob5){var I1b=this.GetSelection().GetParentElement(); if (I1b && I1b.tagName){Ob5=this.odt(I1b.tagName+"."+M); }}return Ob5; } ; RadEditor.prototype.Fire= function (O10,i10){if ( false ==this.ocy("\x4fnClientComm\x61\x6edEx\x65\x63u\x74ing",O10,i10))return; if (this.IsIE)this.l19.contentEditable= true; this.ldt=null; var idt=RadEditorCommandList[O10]; var Idt= false; if (idt){Idt=( false !=idt(O10,this,i10)); }else {alert("\x43ould no\x74\x20find\x20\x74he\x20\143\x6fmmand "+O10+". Please \x75\x70date\x20\x79our\x20\143o\x6d\x6dan\x64\x20li\x73t."); }if (Idt){ this.SetFocus(); this.l9p(RadEditorNamespace.o9m,null); } this.ocy("\x4fnClien\x74\x43omma\x6e\x64Exe\x63\165t\x65\x64",O10,i10); } ; RadEditor.prototype.oau= function (Ic9){var i10=null; var I1a=null; var contentWindow=this.ContentWindow; for (var i=0; i<Ic9.length; i++){i10=Ic9[i]; var obb=i10.Name; I1a=RadEditorNamespace.lt[obb]; if (obb==RadEditorNamespace.i1i){i10.SetState(this.l13.odu()); }else if (obb==RadEditorNamespace.I1i){i10.SetState(this.l13.Odu()); }else if (obb==RadEditorNamespace.O13){i10.SetState(this.l13.ldu()?RadEditorNamespace.r:RadEditorNamespace.S); }else if (i10.SetState && I1a && I1a.GetState){i10.SetState(I1a.GetState(contentWindow)); }if (i10.UpdateValue)i10.UpdateValue(I1a.GetValue(contentWindow)); i10=I1a=null; }} ; RadEditor.prototype.idu= function (O27){RadEditorNamespace.Utils.ic1(this.Oat,O27); } ; RadEditor.prototype.Undo= function (Idu){ this.l13.Undo(Idu); } ; RadEditor.prototype.Redo= function (Idu){ this.l13.Redo(Idu); } ; RadEditor.prototype.i15= function (odv,idp){if ( false !=idp)this.SetFocus(); this.l13.k(odv); } ; RadEditor.prototype.o13= function (A,G,value,Odv){var I=this.Localization[A]; this.i15(RadEditorNamespace.O.o(I,A,this.ContentWindow,value)); this.SetActive(); this.SetFocus(); if ( true ==Odv)this.l9p(RadEditorNamespace.o9m,null); } ; RadEditor.prototype.ExecuteInsertObjectCommand= function (ldv,I){ this.SetFocus(); return this.i15(RadEditorNamespace.o7.o(I,this.ContentWindow,RadEditorNamespace.Utils.O24(ldv))); } ; RadEditor.prototype.l2m= function (O2,I,l2){return this.i15(RadEditorNamespace.o2.o(I,this.ContentWindow,O2,l2)); } ; RadEditor.prototype.ExecuteApplyCssClassCommand= function (className,I){return this.i15(RadEditorNamespace.oe.o(I,this.ContentWindow,className)); } ; RadEditor.prototype.ExecuteSetAttributeCommand= function (o8,l5,oa2,I){return this.i15(RadEditorNamespace.ob.o(I,this.ContentWindow,o8,l5,oa2)); } ; RadEditor.prototype.ExecuteSetStyleRuleCommand= function (o8,idv,Idv,I){return this.i15(RadEditorNamespace.od.o(I,this.ContentWindow,o8,idv,Idv)); } ; RadEditor.prototype.o1t= function (tagName,odw,Odw,ldw,i93,I93){var Ob=this.Document.createElement(tagName); Ob.style.width=RadEditorNamespace.Utils.Oi(odw,""); Ob.style.height=RadEditorNamespace.Utils.Oi(Odw,""); if (null!=ldw)Ob.id=ldw; if (null!=i93)Ob.name=i93; if (null!=I93)Ob.value=I93; return Ob; } ; RadEditor.prototype.SelectElement= function (l6,fireEvent){if (RadEditorNamespace.Utils.SelectElement(this.ContentWindow,l6) && false !=fireEvent){ this.l9p(RadEditorNamespace.o9m,null); }} ; RadEditor.prototype.CreateRestorePoint= function (){return RadEditorNamespace.K(this.ContentWindow); } ; RadEditor.prototype.i2m= function (url){ this.o13(RadEditorNamespace.ibl, false ,url, true); } ; RadEditor.prototype.I1r= function (url,text,O1r){ this.SetActive(); if (O1r){O1r.text=(O1r.text || O1r.o6w); }if (O1r && O1r.name){if (document.all){var idw=this.GetSelection().o1r(); if (idw && idw!=""){ this.o13("Creat\x65Book\x6d\x61rk", true ,O1r.name, true); }else { this.PasteHtml("\074\x61 name=\042"+O1r.name+"\042\x3e\x3c/a>"); }}else { this.PasteHtml("<A\x20\x6eame=\047"+O1r.name+"\047>"+text+"</A>",this.Localization["CreateLi\x6ek"], true); }}else if (url){var Idw=this.GetSelection(); var odx=Idw.GetText(); text=(text || url); var Odx=TelerikNamespace.Utils.DetectBrowser("\x73afar\x69"); if (Idw.GetParentElement().tagName=="IMG"){}else if (text && (!odx || text!=odx)){if (!Odx)this.PasteHtml(text,null, true); }if (Odx){ this.PasteHtml("<A href=\047"+url+"\047\x3e"+text+"</A>",this.Localization["\x43rea\x74\x65Li\x6ek"], true); }else { this.o13("CreateLi\x6e\x6b", true ,url, true); }}if (O1r){ this.O2m(O1r); }} ; RadEditor.prototype.O2m= function (O1r,ldx){ldx=ldx || this.Localization[RadEditorNamespace.l2g]; var selection=this.GetSelection(); var anchor=RadEditorNamespace.Utils.o1c(selection.GetParentElement(),"\x41"); var idx= false; if (!anchor){var oDiv=document.createElement("\x44IV"); oDiv.innerHTML=selection.o1r(); if (oDiv.firstChild && "\x41"==oDiv.firstChild.tagName){anchor=oDiv.firstChild; idx= true; }else return; }var Idx=this.Document.createElement("\x41"); if (O1r.href && RadEditorNamespace.Utils.Ic(O1r.href)){Idx.href=O1r.href; }if ((O1r.text && RadEditorNamespace.Utils.Ic(O1r.text)) || (O1r.href && RadEditorNamespace.Utils.Ic(O1r.href))){Idx.innerHTML=(O1r.text || O1r.href); }if (O1r.name && RadEditorNamespace.Utils.Ic(O1r.name)){Idx.name=O1r.name; }if (O1r.title && RadEditorNamespace.Utils.Ic(O1r.title)){Idx.title=O1r.title; }if (O1r.target && RadEditorNamespace.Utils.Ic(O1r.target)){Idx.target=O1r.target; }if (O1r.className && RadEditorNamespace.Utils.Ic(O1r.className)){Idx.className=O1r.className; }ldx=(ldx || this.Localization[RadEditorNamespace.l2g]); if (!idx){var ody=Idx.innerHTML; this.l2m(Idx,ldx,anchor); anchor.innerHTML=ody; if (this.IsIE){anchor.removeAttribute("\x6ea\x6d\x65"); anchor.removeAttribute("NAME"); if (Idx.name){anchor.name=Idx.name; anchor["\116\x41\x4dE"]=Idx.name; }} this.SelectElement(anchor, false); this.SetFocus(); if (this.IsIE){var i2e=this.Document.selection.createRange(); i2e.select(); var Ody=document.selection.createRange(); Ody.setEndPoint("En\x64\x54oEnd",i2e); Ody.setEndPoint("\x53tartToSt\x61\x72t",i2e); Ody.select(); } this.l9p(RadEditorNamespace.o9m,null); }else { this.PasteHtml(RadEditorNamespace.Utils.O24(Idx),ldx); }} ; RadEditor.prototype.l27= function (ldy){var I="\x49nser\x74\x20row"; if (ldy=="\141\x62\157ve")I=this.Localization[RadEditorNamespace.Oy]; else if (ldy=="\x62\x65low")I=this.Localization[RadEditorNamespace.ly]; this.i15(RadEditorNamespace.lp.o(I,this.ContentWindow,ldy)); } ; RadEditor.prototype.i27= function (ldy){var I="\x49nsert \x63\x6flumn"; if (ldy=="\x6ceft")I=this.Localization[RadEditorNamespace.iy]; else if (ldy=="\x72\x69ght")I=this.Localization[RadEditorNamespace.Iy]; this.i15(RadEditorNamespace.iq.o(I,this.ContentWindow,ldy)); } ; RadEditor.prototype.I27= function (){ this.i15(RadEditorNamespace.lq.o(this.Localization[RadEditorNamespace.oz],this.ContentWindow)); } ; RadEditor.prototype.o28= function (){ this.i15(RadEditorNamespace.or.o(this.Localization[RadEditorNamespace.Oz],this.ContentWindow)); } ; RadEditor.prototype.O28= function (){ this.i15(RadEditorNamespace.ot.o(this.Localization[RadEditorNamespace.lz],this.ContentWindow)); } ; RadEditor.prototype.l28= function (){ this.i15(RadEditorNamespace.os.o(this.Localization[RadEditorNamespace.iz],this.ContentWindow)); } ; RadEditor.prototype.i28= function (){ this.i15(RadEditorNamespace.Or.o(this.Localization[RadEditorNamespace.Iz],this.ContentWindow)); } ; RadEditor.prototype.I28= function (){ this.i15(RadEditorNamespace.Os.o(this.Localization[RadEditorNamespace.o10],this.ContentWindow)); } ; RadEditor.prototype.Ict= function (idy,Idy){if (this.odf){ this.odf.Ict(idy,Idy); }} ; RadEditor.prototype.odz= function (idy){if (this.odf){ this.odf.odz(idy); }} ; RadEditor.prototype.Odz= function (idy,Idy){if (this.odf){ this.odf.Odz(idy,Idy); }} ; RadEditor.prototype.GetDialogParameters= function (ldz){var I2g=null; var array=this.lcn; for (var i=0; i<array.length; i++){var idz=array[i]; if (ldz==idz[0]){I2g= {} ; dialogArguments=idz[1]; for (var j=0; j<dialogArguments.length; j++){I2g[dialogArguments[j][0]]=dialogArguments[j][1]; }}}return I2g; } ; RadEditor.prototype.ShowDialog= function (url,O23,width,height,l2i,Idz,oe0){var i3o=this ; if (!Idz){Idz= {} ; }Idz.l10=this ; if (this.Document.selection){Idz.Oe0=this.Document.selection.createRange(); }Idz.l2i=l2i; if (document.selection && document.selection.type.toLowerCase()=="\143ontrol"){document.selection.empty(); document.body.focus(); window.focus(); }if (!O23){O23= {} ; }var Oc3=this.Id; O23.Oc3=Oc3; O23.HideEditorStatusBar=RadEditorNamespace.HideEditorStatusBar; O23.ColorsArray=this.ColorsArray; O23.CanAddCustomColors=this.i3g; O23.StripAbsoluteImagesPaths=this.StripAbsoluteImagesPaths; RadEditorNamespace.le0(Oc3); window.setTimeout("RadEditorNa\x6despac\x65\x2eHide\x45ditor\x53\x74at\x75\x73Bar\x28\047"+Oc3+"\047\x29",1000); var ie0=new RadWindowInfo(); ie0.Url=url; ie0.Width=width; ie0.Height=height; ie0.Caption=(oe0?oe0: ""); ie0.IsVisible= true; ie0.Argument=O23; ie0.CallbackFunc= function (i2l,I2l){if (I2l.Oe0 && I2l.Oe0.select){I2l.Oe0.select(); }I2l.Oc3=null; I2l.CanAddCustomColors=null; I2l.StripAbsoluteImagesPaths=null; if (I2l.l2i){I2l.l2i(i2l,I2l); }if (null!=i2l)I2l.l10.l9p(RadEditorNamespace.o9m,null); I2l.l10.SetFocus(); } ; ie0.OnLoadFunc=null; ie0.Param=Idz; ie0.Resizable= true; ie0.Movable= true; ie0.UseClassicDialogs=i3o.UseClassicDialogs; ie0.BlankIFrameLocation=i3o.BlankIFrameLocation; wnd=GetEditorRadWindowManager().ShowModalWindow(ie0); return wnd; } ; RadEditorNamespace.le0= function (Oc3){var span=document.getElementById("r\x61\x64EditorLoa\x64\x69ng"+Oc3); if (span)span.style.display="\x62lock"; } ; RadEditorNamespace.HideEditorStatusBar= function (Oc3){var span=document.getElementById("radEditorLo\x61\x64ing"+Oc3); if (span)span.style.display="\x6eone"; } ; RadEditor.prototype.odq= function (){var ldm=this.o2i.value; if (this.Ock){var i3o=new RegExp(RadEditorNamespace.ibh+"+","ig"); ldm=ldm.replace(i3o,""); if (document.all){if (ldm.indexOf("\x3cSCRIPT")<0 && ldm.indexOf("<scrip\x74")<0){ldm=ldm.replace(/[\x0a\x0d]/ig,""); }else {var Ie0=/\x3c\x53\x43\x52\x49\x50\x54[^\x3e]*\x3e[\s\S]*?\x3c\x2f\x53\x43\x52\x49\x50\x54[^\x3e]*\x3e/ig; var oe1=null; var Oe1=new RadEditorNamespace.Utils.lby(""); var le1=0; try {while ((oe1=Ie0.exec(ldm))!=null){var ie1=oe1[0]; var Ie1=ldm.substring(le1,Ie0.lastIndex-ie1.length); Oe1.Iby(Ie1.replace(/[\x0a\x0d]/ig,"")); Oe1.Iby(ie1); le1=Ie0.lastIndex; }if (le1<ldm.length){Oe1.Iby(ldm.substring(le1)); }ldm=Oe1.ToString(); }catch (e){ ; } ; }}} this.o2i.value=ldm; } ; RadEditor.prototype.oe2= function (){RadEditorNamespace.Oe2= {} ; var I5a=document.createElement("D\x49V"); if (this.IsIE){I5a.innerHTML="<span> \x3b\x3c/sp\x61\x6e>"+this.o2i.value; I5a.removeChild(I5a.firstChild); }else I5a.innerHTML=this.o2i.value; var content=I5a.innerHTML; if (content){var le2=new RadEditorNamespace.Utils.lby(""); RadEditorNamespace.ie2(I5a,"",RadEditorNamespace.lbh,le2); content=le2.ToString(); content=content.substring(7,content.length-7); this.FiltersManager.Ie2( false); var content=this.FiltersManager.GetHtmlContent(content); this.FiltersManager.Ie2( true); } this.o2i.value=content; } ; RadEditorNamespace.ie2= function (I5a,oe3,Oe3,le3){if (!I5a)return; var nodeType=I5a.nodeType; if (1==nodeType){if (I5a.uniqueID){if (this.Oe2[I5a.uniqueID])return; else this.Oe2[I5a.uniqueID]= true; }var tagName=I5a.tagName.toUpperCase(); if (I5a.tagName.charAt(0)=="/"){return; }le3.Iby("\012"+oe3+"<"+(I5a.scopeName && I5a.scopeName.toLowerCase()!="\x68tml"?I5a.scopeName+":": "")+tagName.toLowerCase()); var ie3=I5a.attributes; var Ie3=ie3.length; if (document.all && "I\x4d\x47"==tagName){var i8o=document.createElement("IMG"); i8o.mergeAttributes(I5a); if (i8o.width)le3.Iby("\x20width=\x22"+i8o.width+"\x22"); if (i8o.height)le3.Iby(" heigh\x74\x3d\042"+i8o.height+"\042"); }for (var i=0; i<Ie3; i++){var oe4=ie3[i]; var l5=oe4.nodeName.toUpperCase(); var oa2=oe4.nodeValue; if ((oa2 && oe4.specified) || ("\111\x4d\x47"==tagName && "ALT"==l5 && oa2) || ("\x49NPUT"==tagName && "\x56ALUE"==l5 && oa2) || ("AREA"==tagName && "\x53HAPE"==l5 && oa2) || ("AREA"==tagName && "\x43OORDS"==l5 && oa2)){if ("\x41REA"==tagName && "HREF"==l5 && oa2 && oa2.length>0){var Oe4="\x61bout:\x62\x6cank"; if (0==oa2.indexOf(Oe4) && oa2.length>Oe4.length){oa2=oa2.substr(Oe4.length); }}le3.Iby(" "+oe4.nodeName+"=\042"+oa2+"\x22"); }}if (document.all){var i7i=I5a.style.cssText; if (i7i){le3.Iby(" st\x79\x6ce=\042"+i7i+"\042"); }}if (I5a.canHaveChildren || I5a.hasChildNodes()){le3.Iby(">"); var le4=I5a.childNodes.length; var ie4= true; if (!document.all && "TD"==tagName){ie4= false; for (var i=0; i<le4; i++){if (1==I5a.childNodes[i].nodeType && "\102\x52"==I5a.childNodes[i].tagName){continue; }else if (3==I5a.childNodes[i].nodeType && (!I5a.childNodes[0].nodeValue || 0==RadEditorNamespace.Utils.Ic(I5a.childNodes[0].nodeValue).length)){continue; }else {ie4= true; break; }}}var I7r=0; if (ie4){for (I7r=0; I7r<le4; I7r++){RadEditorNamespace.ie2(I5a.childNodes[I7r],oe3+Oe3,Oe3,le3); }}le3.Iby((I7r>0?"\012"+oe3: "")+"\x3c/"+tagName.toLowerCase()+"\x3e"); }else if (!document.all && !I5a.hasChildNodes() && "\x64iv"==tagName.toLowerCase()){le3.Iby("\x3e</div>"); }else if (tagName=="S\x43\x52IPT")le3.Iby(">"+I5a.text+"\x3c/scri\x70\x74>"); else if (tagName=="TITLE" || tagName=="\123TY\x4c\x45" || tagName=="COMMEN\x54" || tagName=="\x49FRAME")le3.Iby(">"+I5a.innerHTML+"</"+tagName.toLowerCase()+">"); else le3.Iby("\x2f>"); }else if (3==nodeType){var o3s=I5a.data.replace(/[\x0a\x0d]/ig,"").replace(/\x3c/ig,"\x26lt;").replace(/\x3e/ig,"\x26gt;"); if (!document.all){var Ie4=RadEditorNamespace.Utils.Ic(o3s); if (Ie4.length==0)return le3; }le3.Iby("\x0a"+oe3+o3s); }else if (8==nodeType){le3.Iby("\x0a"+oe3+I5a.innerHTML); }return le3; } ; RadEditor.prototype.ldo= function (o3a){if (!this.Ock)return; if (this.FullPage)return; if (!this.oe5){var oah=this ; var Oe5=document.getElementById("\x52ad\x45\x49ndentH\x74\x6dl"+oah.Id); Oe5.innerHTML+=this.Localization["I\x6e\144\x65\x6etHtm\x6c"]; Oe5.onclick=new Function("\x74his.getEl\x65\x6dents\x42\x79T\x61gName (\x22\x49NP\x55\124\x22)[0].\x63lick(\x29"); var le5=Oe5.getElementsByTagName("INPUT")[0]; le5.onclick= function (){if (this.checked){oah.oe2(); }else {oah.odq(); }} ; oah.ldd=Oe5; oah.idd=le5; this.oe5= true; }if (null!=this.ldd){ this.ldd.style.display=o3a?"block": "\x6eone"; this.idd.checked= false; }} ; RadEditor.prototype.SetOverlay= function (){var ie5=this.l19; var Ie5=document.createElement("\x49MG"); Ie5.src=this.O26+"\x42uttons/t\x72\x61nsp.\x67\x69f"; Ie5.style.position="\x61bsolute"; Ie5.style.zIndex=50000; Ie5.style.width=parseInt(window.screen.width); Ie5.style.height=parseInt(window.screen.height); Ie5.style.top=0; Ie5.style.left=0; Ie5.id="\x73him"+this.Id; Ie5.style.display="\x62lock"; document.body.appendChild(Ie5); return Ie5.id; } ; RadEditor.prototype.ClearOverlay= function (){var Ie5=document.getElementById("\x73him"+this.Id); if (Ie5){Ie5.parentNode.removeChild(Ie5); }} ; RadEditor.prototype.GetDialogUrl= function (ldz){var url=""; if (this.I5e==RadEditorNamespace.i7e){var o5f=this.O5f.substr(this.l5f.length); url=this.l5f+this.i5f+o5f; }else {url=this.O5f; }return url+"E\x64\x69\x74or/Dia\x6c\x6fg.a\x73px?dial\x6f\147\x3d"+ldz+"\x26editorID="+this.Id+"&\x73\x6binPath\x3d"+this.O26+"&useSe\x73\x73ion="+this.I5e+"&ses\x73\x69onID2\x3d"+this.I5f+"&languag\x65\x3d"+this.I25; } ; RadEditor.prototype.I2c= function (ldz){return this.ocm[ldz]; } ;;RadEditor.prototype.oe6="arr\x6fwDr\x6f\x70dow\x6e.gif"; RadEditor.prototype.Oe6="arrow\x49\143\x6fn.gif"; RadEditor.prototype.Id6= function (){if ( true ==this.Ocj && true !=this.le6){ this.le6= true; var ie6=this.I1j(RadEditorNamespace.o1k.I96); RadEditorNamespace.Ie6(this,ie6); }else { this.oe7(this.icn); }return this.ode; } ; RadEditor.prototype.O1l= function (){var ibg=[]; var Oe7=this.Id+"\124\x6folbar"; var le7=null; var I7r=0; while (null!=(le7=document.getElementById(Oe7+I7r))){ibg[I7r]=le7; I7r++; }return ibg; } ; RadEditor.prototype.ld6= function (visible){var ie7=this.O1l(); for (var i=0; i<ie7.length; i++){ this.Ie7(ie7[i],visible); }} ; RadEditorNamespace.oe8=document.all?"\x69nlin\x65": ""; RadEditor.prototype.Ie7= function (ld7,visible){if (visible){if (ld7.O8v)ld7.O8v(); else ld7.style.display=RadEditorNamespace.oe8; }else {if (ld7.I8s)ld7.I8s(); else ld7.style.display="\x6e\157n\x65"; }} ; RadEditor.prototype.Oe8= function (Oe7,le8,Idi,ie8,Ie8){var oe9=RadEditorNamespace.Oe9.o( {Id:Oe7,Document:document,T:le8,Iad:ie8 && this.I1j(RadEditorNamespace.o1k.I96),Od7:Idi } ); this.ode[this.ode.length]=oe9; return oe9; } ; RadEditor.prototype.oe7= function (Ic9){if (this.le9)return; else this.le9= true; for (var i=0; i<Ic9.length; i++){var Iah=0; var ie9=Ic9[i]; if (ie9.length<=1)continue; var Oe7=ie9[Iah++]; var le8=ie9[Iah++]; var Idi=ie9[Iah++]; var ie8=ie9[Iah++]; var Ie8=ie9[Iah++]; if (le8){var Ie9=this.Localization[le8]; le8=Ie9?Ie9:le8; }var toolbar=this.Oe8(Oe7,le8,Idi,ie8 && this.i96,Ie8); var Idh=ie9[Iah++]; for (var j=0; j<Idh.length; j++){var oea=Idh[j]; var O27=this.Oea(oea); if (O27){toolbar.lea(O27); this.idu(O27); }else if (oea && oea[0]==RadEditorNamespace.Obu){toolbar.iea(); }}}} ; RadEditor.prototype.Oea= function (oea){var la4=this.Localization; var idm=this ; var O27=null; if (oea){Iah=0; var Iea=oea[Iah++]; var oeb=oea[Iah++]; var Oeb=oea[Iah++]; var l9s= {} ; l9s.GetController= function (){return idm; } ; l9s.Document=document; l9s.Name=oeb; l9s.Type=Iea; l9s.iap=Oeb; if (Oeb){ this.Odz(oeb,Oeb); }l9s.oaq=oea[Iah++]; l9s.Iap=oea[Iah++]; l9s.Oaq=oea[Iah++]; var Idm=oea[Iah++]; var leb=Idm?Idm: this.Idj(oeb+".\x67i\x66"); l9s.oa5=leb; var title=la4[oeb]; if (null==title)title=oeb; l9s.T=title; if (Iea==RadEditorNamespace.ibt){O27=RadEditorNamespace.ia5.o(l9s); }else if (Iea==RadEditorNamespace.Ibt || Iea==RadEditorNamespace.lbu || Iea==RadEditorNamespace.obu){l9s.Ia3= function (name){return idm.oa4(name); } ; l9s.Ia2=this.Idj(this.Oe6); l9s.i3k=oea[Iah++]; l9s.I3t=oea[Iah++]; l9s.o3u=oea[Iah++]; var ieb=oea[Iah++]; switch (oeb){case RadEditorNamespace.i1i:case RadEditorNamespace.I1i:l9s.oa3=1; l9s.I3t=130; l9s.o3u=130; l9s.Iaj="R\x61dESymbol\x50\x69cke\x72"; l9s.ClassName="\x52adEToo\x6c\x4cong"; O27=RadEditorNamespace.ibf.o(l9s); break; case RadEditorNamespace.i1u:l9s.oa3=1; l9s.Oa3=1; l9s.I3t=180; l9s.o3u=138; l9s.ClassName="\x52adEToolLong"; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.O1j:l9s.I3t=180; l9s.o3u=150; l9s.ClassName="R\x61\144\x45\x54oolL\x6f\x6eg"; l9s.O26=idm.O26; O27=RadEditorNamespace.obf.o(l9s); break; case RadEditorNamespace.l1p:l9s.I3t=180; l9s.o3u=150; l9s.ClassName="\x52adEToolLon\x67"; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.o1u:l9s.I3t=180; l9s.o3u=200; l9s.Oa3=0; l9s.ClassName="Rad\x45\x54oolLon\x67"; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.o1p:if (document.all){l9s.I3t=60; l9s.o3u=175; l9s.Ia2=this.Idj(this.oe6); l9s.oa5=null; O27=RadEditorNamespace.Iaz.o(l9s); }break; case RadEditorNamespace.O1q:l9s.Width=80; l9s.I3t=220; l9s.o3u=220; l9s.oa5=null; l9s.Ia2=this.Idj(this.oe6); l9s.lbc=this.O26; O27=RadEditorNamespace.Obc.o(l9s); break; case RadEditorNamespace.l29:l9s.oa3=2; l9s.Oa3=2; l9s.I3t=122; l9s.o3u=226; l9s.ClassName="\x52\x61\x64EToolLo\x6e\x67"; l9s.ib7=la4["\x43ancelTa\x62\x6ce"]; l9s.Ib7=la4["\x54able\x57\x69zard"]; l9s.ob8=la4["Table"]; l9s.Localization=la4; l9s.Ob8=this.O26+"\x42uttons/"; O27=RadEditorNamespace.lb7.o(l9s); break; case RadEditorNamespace.O1:l9s.oa3=2; l9s.Oa3=2; l9s.I3t=260; l9s.o3u=250; l9s.Width=80; l9s.oa5=null; l9s.Ia2=this.Idj(this.oe6); l9s.UpdateValue= function (M){if (!M)return; this.i9s=M; try { this.O1p.innerHTML=M; }catch (e){} ; } ; O27=RadEditorNamespace.Iaz.o(l9s); var Ieb=O27.ial; O27.ial= function (){var oec=this.O3w.GetDocument(); if (!this.Oec){var ldr=RadEditorNamespace.GetCssClassServer(); ldr.Od9(idm.Document,oec); this.Oec= true; }if (Ieb)Ieb.call(this ); };break; case RadEditorNamespace.Iu:case RadEditorNamespace.N:l9s.i3g=this.i3g; l9s.l3n=la4["\x41d\x64\x43ustomC\x6f\x6cor"]; l9s.ia4=la4["AddCusto\x6d\x48exCo\x6c\x6fr"]; l9s.Ia4=la4["\x50romptColo\x72"]; O27=RadEditorNamespace.Oa5.o(l9s); break; case RadEditorNamespace.n:case RadEditorNamespace.ov:var l3t=150; var i3t=115; var I6o=80; if (oeb==RadEditorNamespace.n){I6o=21; l3t=100; i3t=180; }var lec= function (M){ this.i9s=M; try {if (!M)M=this.T; this.O1p.innerHTML=(""+M).replace(/\s+/ig,"\x26n\x62\x73p;"); }catch (e){} ; } ; l9s.oa3=0; l9s.I3t=l3t; l9s.o3u=i3t; l9s.Iaj="\x52adEDropD\x6f\x77nFo\x6e\x74"; l9s.Ia2=this.Idj(this.oe6); l9s.oa5=null; l9s.Width=I6o; l9s.UpdateValue=lec; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.Ov:var lec= function (M){var iec=this.GetController().GetSelection().GetParentElement(); if (iec){var fontSize=RadEditorNamespace.Utils.obx(iec,"f\x6fntSiz\x65"); var l1i=fontSize?fontSize: this.T; try { this.O1p.innerHTML=l1i; }catch (e){} ; }};l9s.oa3=0; l9s.Width=40; l9s.Iaj="R\x61\x64EDropD\x6f\x77nFo\x6e\x74"; l9s.I3t=50; l9s.o3u=170; l9s.Ia2=this.Idj(this.oe6); l9s.oa5=null; l9s.UpdateValue=lec; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.l1s:l9s.I3t=195; l9s.o3u=102; l9s.oa3=0; l9s.Oa3=0; l9s.Width=40; l9s.ClassName="R\x61\144\x45\x54oolLo\x6e\x67"; l9s.Iaj="\x52adESymb\x6f\x6cPicke\x72"; l9s.i3k=8; O27=RadEditorNamespace.Iaz.o(l9s); break; case RadEditorNamespace.oy:l9s.I3t=180; l9s.o3u=150; l9s.Width=80; l9s.oa5=null; l9s.Ia2=this.Idj(this.oe6); l9s.ia3=this.O26+"\x49mg/"; O27=RadEditorNamespace.Oa4.o(l9s); break; case RadEditorNamespace.I24:if (!this.Icn || 0==this.Icn.length){O27=RadEditorNamespace.ia5.o(l9s); }else {l9s.ClassName="RadEToolLon\x67"; O27=RadEditorNamespace.Iaz.o(l9s); }break; default:var Iec= function (I2g){return function (){return I2g; } ; };l9s.Ia3=Iec(ieb); if (Idm){l9s.oa5=leb; l9s.ClassName="\x52\141\x64\x45ToolL\x6f\x6eg"; }else {l9s.oa5=null; l9s.Width=80; l9s.Ia2=this.Idj(this.oe6); }if (Iea=="\x54\x44"){O27=RadEditorNamespace.oat.o(l9s); }else {l9s.oa3=1; l9s.Oa3=1; O27=RadEditorNamespace.Iaz.o(l9s); }break; }}else if (Iea==RadEditorNamespace.ibu && RadEditorToolInitializer && RadEditorToolInitializer[oeb]){O27=RadEditorToolInitializer[oeb](l9s); }}return O27; } ; RadEditor.prototype.oa4= function (obb){if (!this.oed){ this.oed= {} ; var l10=this ; var la4=l10.Localization; this.oed[RadEditorNamespace.i1i]= function (){return l10.l13.Oed(); } ; this.oed[RadEditorNamespace.I1i]= function (){return l10.l13.led(); };this.oed[RadEditorNamespace.O1j]= function (){return l10.o1m; } ; this.oed[RadEditorNamespace.O1q]= function (){return l10.Ocn; } ; this.oed[RadEditorNamespace.l1p]= function (){return l10.icl; } ; this.oed[RadEditorNamespace.Iu]=this.oed[RadEditorNamespace.N]= function (){return l10.ColorsArray; } ; this.oed[RadEditorNamespace.I24]= function (){return l10.Icn; } ; this.oed[RadEditorNamespace.o1p]= function (){return [["\x31\x30\x25","1\x30\x25"],["\x32\x30%","\x320%"],["\x350\x25","5\x30\x25"],["100%","\x3100%"],["150%","150%"],["200%","\x3200%"],["300%","\x33\x300%"],["500%","\x3500%"]]; } ; this.oed[RadEditorNamespace.i1u]= function (){return [["ALL",la4["C\x6c\x6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -