X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=plugins%2Fwsc%2Fdialogs%2Fwsc.js;h=5ef1d391f3e9784ba0a11ffa4317ee9d0b61c5d5;hb=HEAD;hp=897fabae32549509b84a4c46f41e037b5a69b205;hpb=749be886bb4b0ebf70be13397f2279d5446cd0c8;p=ckeditor.git diff --git a/plugins/wsc/dialogs/wsc.js b/plugins/wsc/dialogs/wsc.js index 897faba..5ef1d39 100644 --- a/plugins/wsc/dialogs/wsc.js +++ b/plugins/wsc/dialogs/wsc.js @@ -1,64 +1,92 @@ /* - Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. + Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ -var ManagerPostMessage=function(){return{init:function(b){document.addEventListener?window.addEventListener("message",b,!1):window.attachEvent("onmessage",b)},send:function(b){var g=Object.prototype.toString;fn=b.fn||null;id=b.id||"";target=b.target||window;message=b.message||{id:id};"[object Object]"==g.call(b.message)&&(b.message.id||(b.message.id=id),message=b.message);b=JSON.stringify(message,fn);target.postMessage(b,"*")}}},tools={hash:{create:function(b,g){return JSON.stringify(b,g||null)}, -parse:function(b,g){return JSON.parse(b,g||null)}},filter4html:function(b){return b.replace(/"/g,""").replace(/'/g,"’")},setCookie:function(b,g,d){var d=d||{},e=d.expires;if("number"==typeof e&&e){var f=new Date;f.setTime(f.getTime()+1E3*e);e=d.expires=f}e&&e.toUTCString&&(d.expires=e.toUTCString());var g=encodeURIComponent(g),b=b+"="+g,j;for(j in d)b+="; "+j,g=d[j],!0!==g&&(b+="="+g);document.cookie=b},getCookie:function(b){return(b=document.cookie.match(RegExp("(?:^|; )"+b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, -"\\$1")+"=([^;]*)")))?decodeURIComponent(b[1]):void 0},deleteCookie:function(b){setCookie(b,"",{expires:-1})}},optionsDataObject={},NS={},nameNode=null;NS.targetFromFrame={};NS.wsc_customerId=CKEDITOR.config.wsc_customerId;NS.cust_dic_ids=CKEDITOR.config.wsc_customDictionaryIds;NS.userDictionaryName=CKEDITOR.config.wsc_userDictionaryName;NS.defaultLanguage=CKEDITOR.config.defaultLanguage;NS.LocalizationComing={};function OptionsConfirm(b){b&&nameNode.setValue("")} -CKEDITOR.dialog.add("checkspell",function(b){function g(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],h="",b;for(b in a)for(var e in a[b]){var d=a[b][e];"en_US"==d?h=d:c.push(d)}c.sort();h&&c.unshift(h);return{getCurrentLangGroup:function(c){a:{for(var h in a)for(var b in a[h])if(b.toUpperCase()===c.toUpperCase()){c=h;break a}c=""}return c},setLangList:function(){var c={},h;for(h in a)for(var b in a[h])c[a[h][b]]=b;return c}()}}CKEDITOR.on("dialogDefinition", -function(a){a.data.definition.dialog.on("cancel",function(){return!1},this,null,-1)});NS.CKNumber=CKEDITOR.tools.getNextNumber();NS.iframeNumber="cke_frame_"+NS.CKNumber;NS.TextAreaNumber="cke_textarea_"+NS.CKNumber;NS.pluginPath=CKEDITOR.getUrl(b.plugins.wsc.path);NS.logotype=DefaultParams.logoPath;NS.templatePath=NS.pluginPath+"dialogs/tmp.html";NS.div_overlay_no_check=null;NS.loadIcon=DefaultParams.iconPath;NS.loadIconEmptyEditor=DefaultParams.iconPathEmptyEditor;NS.LangComparer=new _SP_FCK_LangCompare; -NS.LangComparer.setDefaulLangCode(NS.defaultLanguage);NS.currentLang=b.config.wsc_lang||NS.LangComparer.getSPLangCode(b.langCode);NS.LocalizationButton={ChangeTo:{instance:null,text:"Change to"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking:{instance:null,text:"Finish Checking"}}; -NS.LocalizationLabel={ChangeTo:{instance:null,text:"Change to"},Suggestions:{instance:null,text:"Suggestions"}};var d=function(a){for(var c in a)a[c].instance.getElement().setText(NS.LocalizationComing[c])},e=function(a){for(var c in a){if(!a[c].instance.setLabel)break;a[c].instance.setLabel(NS.LocalizationComing[c])}};NS.load=!0;NS.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"};NS.dialog=null;NS.optionNode=null;NS.selectNode=null;NS.grammerSuggest=null;NS.textNode={};NS.iframeMain=null; -NS.dataTemp="";NS.div_overlay=null;NS.textNodeInfo={};NS.selectNode={};NS.selectNodeResponce={};NS.selectingLang=NS.currentLang;NS.langList=null;NS.serverLocationHash=DefaultParams.serviceHost;NS.serverLocation="#server="+NS.serverLocationHash;NS.langSelectbox=null;NS.banner="";var f=null;iframeOnload=!1;NS.framesetHtml=function(a){return''}; -NS.setIframe=function(a,c){var h=NS.framesetHtml(c);return a.getElement().setHtml(h)};NS.setCurrentIframe=function(a){NS.setIframe(NS.dialog._.contents[a].Content,a)};NS.sendData=function(){var a=NS.dialog._.currentTabId,c=NS.dialog._.contents[a].Content,h,b;NS.setIframe(c,a);NS.dialog.parts.tabs.removeAllListeners();NS.dialog.parts.tabs.on("click",function(e){e=e||window.event;e.data.getTarget().is("a")&&a!=NS.dialog._.currentTabId&&(a=NS.dialog._.currentTabId,c=NS.dialog._.contents[a].Content,h= -NS.iframeNumber+"_"+a,0==c.getElement().$.children.length?(NS.setIframe(c,a),b=document.getElementById(h),NS.targetFromFrame[h]=b.contentWindow):o(NS.targetFromFrame[h],NS.cmd[a]))})};NS.buildOptionSynonyms=function(a){a=NS.selectNodeResponce[a];NS.selectNode.synonyms.clear();for(var c=0;c"},{type:"html",id:"Content",label:"spellContent",html:"",onLoad:function(){var a= -NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow},onShow:function(){NS.dataTemp=NS.dialog.getParentEditor().getData();NS.div_overlay.setEnable()}},{type:"hbox",id:"bottomGroup",widths:["50%","50%"],children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"text",label:NS.LocalizationLabel.ChangeTo.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;", -width:"140px","default":"",onLoad:function(){NS.textNode.SpellTab=this;NS.LocalizationLabel.ChangeTo.instance=this},onHide:function(){this.reset()}},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"text",id:"labelSuggestions",label:NS.LocalizationLabel.Suggestions.text+":",onLoad:function(){NS.LocalizationLabel.Suggestions.instance=this;this.getInputElement().hide()}},{type:"html",id:"logo",html:'WebSpellChecker.net', -onShow:function(){this.getElement().$.src=NS.logotype;this.getElement().getParent().setStyles({"text-align":"left"})}}]},{type:"select",id:"list_of_suggestions",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 140px; height: auto;",items:[["loading..."]],onShow:function(){selectNode=this},onHide:function(){this.clear()},onChange:function(){NS.textNode.SpellTab.setValue(this.getValue())}}]}]}]},{type:"hbox",id:"rightCol",align:"right",width:"50%",children:[{type:"vbox",id:"rightCol_col__left", -widths:["50%","50%","50%","50%"],children:[{type:"button",id:"ChangeTo",label:NS.LocalizationButton.ChangeTo.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.ChangeTo.instance=this},onClick:i},{type:"button",id:"ChangeAll",label:NS.LocalizationButton.ChangeAll.text,title:"Change All",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.ChangeAll.instance= -this},onClick:i},{type:"button",id:"AddWord",label:NS.LocalizationButton.AddWord.text,title:"Add word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.AddWord.instance=this},onClick:i},{type:"button",id:"FinishChecking",label:NS.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.FinishChecking.instance= -this},onClick:i}]},{type:"vbox",id:"rightCol_col__right",widths:["50%","50%","50%"],children:[{type:"button",id:"IgnoreWord",label:NS.LocalizationButton.IgnoreWord.text,title:"Ignore word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);NS.LocalizationButton.IgnoreWord.instance=this},onClick:i},{type:"button",id:"IgnoreAllWords",label:NS.LocalizationButton.IgnoreAllWords.text,title:"Ignore all words",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd", -this.id);NS.LocalizationButton.IgnoreAllWords.instance=this},onClick:i},{type:"button",id:"option",label:NS.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){NS.LocalizationButton.Options.instance=this},onClick:function(){b.openDialog("options")}}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1", -children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow:function(){this.getElement().$.src=NS.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"Option_button",label:NS.LocalizationButton.Options.text,title:"Option",style:"width: 100%;", -onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:function(){b.openDialog("options")}},{type:"button",id:"FinishChecking",label:NS.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",html:"
"},{type:"html",id:"Content",label:"GrammarContent",html:"", -onShow:function(){var a=NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow}},{type:"vbox",id:"bottomGroup",children:[{type:"hbox",id:"leftCol",widths:["66%","34%"],children:[{type:"vbox",children:[{type:"text",id:"text",label:"Change to:",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif; float: right;margin-right: 80px;",inputStyle:"",width:"200px","default":"",onLoad:function(){NS.textNode.GrammTab=this},onHide:function(){this.reset()}}, -{type:"html",id:"html_text",html:"
",onLoad:function(){NS.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onLoad:function(){NS.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd", -this.id)},onClick:i},{type:"button",id:"IgnoreWord",label:"Ignore word",title:"Ignore word",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i},{type:"button",id:"IgnoreAllWords",label:"Ignore Problem",title:"Ignore Problem",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;", -onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow:function(){this.getElement().$.src= -NS.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",html:"
"}, -{type:"html",id:"Content",label:"spellContent",html:"",onShow:function(){var a=NS.iframeNumber+"_"+NS.dialog._.currentTabId,b=document.getElementById(a);NS.targetFromFrame[a]=b.contentWindow}},{type:"vbox",id:"bottomGroup",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo",label:"Change to:",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;","default":"", -onLoad:function(){NS.textNode.Thesaurus=this},onHide:function(){this.reset()}},{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]},{type:"hbox",children:[{type:"select",id:"categories",label:"Categories:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 180px; height: auto;",items:[],onLoad:function(){NS.selectNode.categories=this},onHide:function(){this.clear()}, -onChange:function(){NS.buildOptionSynonyms(this.getValue())}},{type:"select",id:"synonyms",label:"Synonyms:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 180px; height: auto;",items:[],onLoad:function(){NS.selectNode.synonyms=this},onShow:function(){NS.textNode.Thesaurus.setValue(this.getValue())},onHide:function(){this.clear()},onChange:function(){NS.textNode.Thesaurus.setValue(this.getValue())}}]}]},{type:"vbox",width:"120px",style:"margin-top:46px;",children:[{type:"html", -id:"logotype",label:"WebSpellChecker.net",html:'WebSpellChecker.net',onShow:function(){this.getElement().$.src=NS.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 121px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)}, -onClick:i}]}]}]},{type:"hbox",id:"BlockFinishChecking",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:l,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'WebSpellChecker.net',onShow:function(){this.getElement().$.src=NS.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]}, -{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:i}]}]}]}]}]}}); -CKEDITOR.dialog.add("options",function(){var b=new ManagerPostMessage,g=null,d={},e={},f=null,j=null;tools.getCookie("udn");tools.getCookie("osp");var k=function(){j=this.getElement().getAttribute("title-cmd");var d=[];d[0]=e.IgnoreAllCapsWords;d[1]=e.IgnoreWordsNumbers;d[2]=e.IgnoreMixedCaseWords;d[3]=e.IgnoreDomainNames;d=d.toString().replace(/,/g,"");tools.setCookie("osp",d);tools.setCookie("udnCmd",j?j:"ignore");"delete"!=j&&tools.setCookie("udn",""==nameNode.getValue()?"":nameNode.getValue()); -b.send({id:"options_dic_send"})},m=function(){f.getElement().setHtml(NS.LocalizationComing.error);f.getElement().show()};return{title:NS.LocalizationComing.Options,minWidth:430,minHeight:130,resizable:CKEDITOR.DIALOG_RESIZE_NONE,contents:[{id:"OptionsTab",label:"Options",accessKey:"O",elements:[{type:"hbox",id:"options_error",children:[{type:"html",style:"display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red",html:"
",onShow:function(){f=this}}]},{type:"vbox", -id:"Options_content",children:[{type:"hbox",id:"Options_manager",widths:["52%","48%"],children:[{type:"fieldset",label:"Spell Checking Options",style:"border: none;margin-top: 13px;padding: 10px 0 10px 10px",onShow:function(){this.getInputElement().$.children[0].innerHTML=NS.LocalizationComing.SpellCheckingOptions},children:[{type:"vbox",id:"Options_checkbox",children:[{type:"checkbox",id:"IgnoreAllCapsWords",label:"Ignore All-Caps Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;", -style:"float:left; min-height: 16px;","default":"",onClick:function(){e[this.id]=!1==this.getValue()?0:1}},{type:"checkbox",id:"IgnoreWordsNumbers",label:"Ignore Words with Numbers",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){e[this.id]=!1==this.getValue()?0:1}},{type:"checkbox",id:"IgnoreMixedCaseWords",label:"Ignore Mixed-Case Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;", -style:"float:left; min-height: 16px;","default":"",onClick:function(){e[this.id]=!1==this.getValue()?0:1}},{type:"checkbox",id:"IgnoreDomainNames",label:"Ignore Domain Names",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){e[this.id]=!1==this.getValue()?0:1}}]}]},{type:"vbox",id:"Options_DictionaryName",children:[{type:"text",id:"DictionaryName",style:"margin-bottom: 10px", -label:"Dictionary Name:",labelLayout:"vertical",labelStyle:"font: 12px/25px arial, sans-serif;","default":"",onLoad:function(){nameNode=this;this.setValue(NS.userDictionaryName?NS.userDictionaryName:(tools.getCookie("udn"),this.getValue()))},onShow:function(){nameNode=this;this.setValue(!tools.getCookie("udn")?this.getValue():tools.getCookie("udn"));this.setLabel(NS.LocalizationComing.DictionaryName)},onHide:function(){this.reset()}},{type:"hbox",id:"Options_buttons",children:[{type:"vbox",id:"Options_leftCol_col", -widths:["50%","50%"],children:[{type:"button",id:"create",label:"Create",title:"Create",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Create)},onClick:k},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Restore)},onClick:k}]}, -{type:"vbox",id:"Options_rightCol_col",widths:["50%","50%"],children:[{type:"button",id:"rename",label:"Rename",title:"Rename",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Rename)},onClick:k},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(NS.LocalizationComing.Remove)}, -onClick:k}]}]}]}]},{type:"hbox",id:"Options_text",children:[{type:"html",style:"text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;",html:"
"+NS.LocalizationComing.OptionsTextIntro+"
",onShow:function(){this.getElement().setText(NS.LocalizationComing.OptionsTextIntro)}}]}]}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onOk:function(){var d=[];d[0]=e.IgnoreAllCapsWords;d[1]=e.IgnoreWordsNumbers;d[2]=e.IgnoreMixedCaseWords;d[3]= -e.IgnoreDomainNames;d=d.toString().replace(/,/g,"");tools.setCookie("osp",d);tools.setCookie("udn",nameNode.getValue());b.send({id:"options_checkbox_send"});f.getElement().hide();f.getElement().setHtml(" ")},onLoad:function(){g=this;b.init(m);d.IgnoreAllCapsWords=g.getContentElement("OptionsTab","IgnoreAllCapsWords");d.IgnoreWordsNumbers=g.getContentElement("OptionsTab","IgnoreWordsNumbers");d.IgnoreMixedCaseWords=g.getContentElement("OptionsTab","IgnoreMixedCaseWords");d.IgnoreDomainNames=g.getContentElement("OptionsTab", -"IgnoreDomainNames")},onShow:function(){strToArr=tools.getCookie("osp").split("");e.IgnoreAllCapsWords=strToArr[0];e.IgnoreWordsNumbers=strToArr[1];e.IgnoreMixedCaseWords=strToArr[2];e.IgnoreDomainNames=strToArr[3];0==e.IgnoreAllCapsWords?d.IgnoreAllCapsWords.setValue("",!1):d.IgnoreAllCapsWords.setValue("checked",!1);0==e.IgnoreWordsNumbers?d.IgnoreWordsNumbers.setValue("",!1):d.IgnoreWordsNumbers.setValue("checked",!1);0==e.IgnoreMixedCaseWords?d.IgnoreMixedCaseWords.setValue("",!1):d.IgnoreMixedCaseWords.setValue("checked", -!1);0==e.IgnoreDomainNames?d.IgnoreDomainNames.setValue("",!1):d.IgnoreDomainNames.setValue("checked",!1);e.IgnoreAllCapsWords=!1==d.IgnoreAllCapsWords.getValue()?0:1;e.IgnoreWordsNumbers=!1==d.IgnoreWordsNumbers.getValue()?0:1;e.IgnoreMixedCaseWords=!1==d.IgnoreMixedCaseWords.getValue()?0:1;e.IgnoreDomainNames=!1==d.IgnoreDomainNames.getValue()?0:1;d.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreAllCapsWords;d.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML= -NS.LocalizationComing.IgnoreWordsWithNumbers;d.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreMixedCaseWords;d.IgnoreDomainNames.getElement().$.lastChild.innerHTML=NS.LocalizationComing.IgnoreDomainNames}}}); \ No newline at end of file +(function(){function z(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function I(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],e="",d;for(d in a)for(var f in a[d]){var h=a[d][f];"en_US"==h?e=h:c.push(h)}c.sort();e&&c.unshift(e);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var e in a[d])if(e.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var e in a[d])c[a[d][e]]= +e;return c}()}}var g=function(){var a=function(a,b,d){d=d||{};var f=d.expires;if("number"==typeof f&&f){var h=new Date;h.setTime(h.getTime()+1E3*f);f=d.expires=h}f&&f.toUTCString&&(d.expires=f.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var k in d)b=d[k],a+="; "+k,!0!==b&&(a+="\x3d"+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString, +d=a.fn||null,f=a.id||"",h=a.target||window,k=a.message||{id:f};a.message&&"[object Object]"==b.call(a.message)&&(a.message.id?a.message.id:a.message.id=f,k=a.message);a=window.JSON.stringify(k,d);h.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, +"\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},remove:function(c){a(c,"",{expires:-1})}},misc:{findFocusable:function(a){var b=null;a&&(b=a.find("a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]"));return b},isVisible:function(a){var b;(b=0===a.offsetWidth||0==a.offsetHeight)||(b="none"===(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null).display:a.currentStyle?a.currentStyle.display:a.style.display)); +return!b},hasClass:function(a,b){return!(!a.className||!a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)")))}}}}(),a=a||{};a.TextAreaNumber=null;a.load=!0;a.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"};a.dialog=null;a.optionNode=null;a.selectNode=null;a.grammerSuggest=null;a.textNode={};a.iframeMain=null;a.dataTemp="";a.div_overlay=null;a.textNodeInfo={};a.selectNode={};a.selectNodeResponce={};a.langList=null;a.langSelectbox=null;a.banner="";a.show_grammar=null;a.div_overlay_no_check= +null;a.targetFromFrame={};a.onLoadOverlay=null;a.LocalizationComing={};a.OverlayPlace=null;a.sessionid="";a.LocalizationButton={ChangeTo_button:{instance:null,text:"Change to",localizationID:"ChangeTo"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking_button:{instance:null,text:"Finish Checking", +localizationID:"FinishChecking"},FinishChecking_button_block:{instance:null,text:"Finish Checking",localizationID:"FinishChecking"}};a.LocalizationLabel={ChangeTo_label:{instance:null,text:"Change to",localizationID:"ChangeTo"},Suggestions:{instance:null,text:"Suggestions"},Categories:{instance:null,text:"Categories"},Synonyms:{instance:null,text:"Synonyms"}};var J=function(b){var c,e,d;for(d in b)c=(c=a.dialog.getContentElement(a.dialog._.currentTabId,d))?c.getElement():b[d].instance.getElement().getFirst()|| +b[d].instance.getElement(),e=b[d].localizationID||d,c.setText(a.LocalizationComing[e])},K=function(b){var c,e,d;for(d in b)c=a.dialog.getContentElement(a.dialog._.currentTabId,d),c||(c=b[d].instance),c.setLabel&&(e=b[d].localizationID||d,c.setLabel(a.LocalizationComing[e]+":"))},r,A;a.framesetHtml=function(b){return"\x3ciframe id\x3d"+a.iframeNumber+"_"+b+' frameborder\x3d"0" allowtransparency\x3d"1" style\x3d"width:100%;border: 1px solid #AEB3B9;overflow: auto;background:#fff; border-radius: 3px;"\x3e\x3c/iframe\x3e'}; +a.setIframe=function(b,c){var e;e=a.framesetHtml(c);var d=a.iframeNumber+"_"+c;b.getElement().setHtml(e);e=document.getElementById(d);e=e.contentWindow?e.contentWindow:e.contentDocument.document?e.contentDocument.document:e.contentDocument;e.document.open();e.document.write('\x3c!DOCTYPE html\x3e\x3chtml\x3e\x3chead\x3e\x3cmeta charset\x3d"UTF-8"\x3e\x3ctitle\x3eiframe\x3c/title\x3e\x3cstyle\x3ehtml,body{margin: 0;height: 100%;font: 13px/1.555 "Trebuchet MS", sans-serif;}a{color: #888;font-weight: bold;text-decoration: none;border-bottom: 1px solid #888;}.main-box {color:#252525;padding: 3px 5px;text-align: justify;}.main-box p{margin: 0 0 14px;}.main-box .cerr{color: #f00000;border-bottom-color: #f00000;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cdiv id\x3d"content" class\x3d"main-box"\x3e\x3c/div\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"spelltext" name\x3d"spelltext" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadsuggestfirst" name\x3d"loadsuggestfirst" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadspellsuggestall" name\x3d"loadspellsuggestall" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadOptionsForm" name\x3d"loadOptionsForm" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3cscript\x3e(function(window) {var ManagerPostMessage \x3d function() {var _init \x3d function(handler) {if (document.addEventListener) {window.addEventListener("message", handler, false);} else {window.attachEvent("onmessage", handler);};};var _sendCmd \x3d function(o) {var str,type \x3d Object.prototype.toString,fn \x3d o.fn || null,id \x3d o.id || "",target \x3d o.target || window,message \x3d o.message || { "id": id };if (o.message \x26\x26 type.call(o.message) \x3d\x3d "[object Object]") {(o.message["id"]) ? o.message["id"] : o.message["id"] \x3d id;message \x3d o.message;};str \x3d JSON.stringify(message, fn);target.postMessage(str, "*");};return {init: _init,send: _sendCmd};};var manageMessageTmp \x3d new ManagerPostMessage;var appString \x3d (function(){var spell \x3d parent.CKEDITOR.config.wsc.DefaultParams.scriptPath;var serverUrl \x3d parent.CKEDITOR.config.wsc.DefaultParams.serviceHost;return serverUrl + spell;})();function loadScript(src, callback) {var scriptTag \x3d document.createElement("script");scriptTag.type \x3d "text/javascript";callback ? callback : callback \x3d function() {};if(scriptTag.readyState) {scriptTag.onreadystatechange \x3d function() {if (scriptTag.readyState \x3d\x3d "loaded" ||scriptTag.readyState \x3d\x3d "complete") {scriptTag.onreadystatechange \x3d null;setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();}};}else{scriptTag.onload \x3d function() {setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();};};scriptTag.src \x3d src;document.getElementsByTagName("head")[0].appendChild(scriptTag);};window.onload \x3d function(){loadScript(appString, function(){manageMessageTmp.send({"id": "iframeOnload","target": window.parent});});}})(this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e'); +e.document.close()};a.setCurrentIframe=function(b){a.setIframe(a.dialog._.contents[b].Content,b)};a.setHeightBannerFrame=function(){var b=a.dialog.getContentElement("SpellTab","banner").getElement(),c=a.dialog.getContentElement("GrammTab","banner").getElement(),e=a.dialog.getContentElement("Thesaurus","banner").getElement();b.setStyle("height","90px");c.setStyle("height","90px");e.setStyle("height","90px")};a.setHeightFrame=function(){document.getElementById(a.iframeNumber+"_"+a.dialog._.currentTabId).style.height= +"240px"};a.sendData=function(b){var c=b._.currentTabId,e=b._.contents[c].Content,d,f;a.previousTab=c;a.setIframe(e,c);var h=function(h){c=b._.currentTabId;h=h||window.event;h.data.getTarget().is("a")&&c!==a.previousTab&&(a.previousTab=c,e=b._.contents[c].Content,d=a.iframeNumber+"_"+c,a.div_overlay.setEnable(),e.getElement().getChildCount()?E(a.targetFromFrame[d],a.cmd[c]):(a.setIframe(e,c),f=document.getElementById(d),a.targetFromFrame[d]=f.contentWindow))};b.parts.tabs.removeListener("click",h); +b.parts.tabs.on("click",h)};a.buildSelectLang=function(a){var c=new CKEDITOR.dom.element("div"),e=new CKEDITOR.dom.element("select");a="wscLang"+a;c.addClass("cke_dialog_ui_input_select");c.setAttribute("role","presentation");c.setStyles({height:"auto",position:"absolute",right:"0",top:"-1px",width:"160px","white-space":"normal"});e.setAttribute("id",a);e.addClass("cke_dialog_ui_input_select");e.setStyles({width:"160px"});c.append(e);return c};a.buildOptionLang=function(b,c){var e=document.getElementById("wscLang"+ +c),d=document.createDocumentFragment(),f,h,k=[];if(0===e.options.length){for(f in b)k.push([f,b[f]]);k.sort();for(var p=0;pm.width-D&&(e=m.width-D);if(gm.height-q&&(g=m.height-q);n.width=e+D;n.height=g+q;a._.fromResizeEvent=!1;a.resize(e,g);setTimeout(function(){a._.fromResizeEvent=!1;CKEDITOR.dialog.fire("resize",{dialog:a,width:e,height:g},b)},300)}a._.moved||(q=isNaN(c)&&isNaN(d)?0:1,isNaN(c)&&(c=(m.width-n.width)/2),0>c&&(c=0),c>m.width-n.width&&(c=m.width-n.width),isNaN(d)&&(d=(m.height-n.height)/2),0>d&&(d=0),d>m.height-n.height&&(d=m.height-n.height),a.move(c, +d,q))}function e(){b.wsc={};(function(a){var b={separator:"\x3c$\x3e",getDataType:function(a){return"undefined"===typeof a?"undefined":null===a?"null":Object.prototype.toString.call(a).slice(8,-1)},convertDataToString:function(a){return this.getDataType(a).toLowerCase()+this.separator+a},restoreDataFromString:function(a){var b=a,c;a=this.backCompatibility(a);if("string"===typeof a)switch(b=a.indexOf(this.separator),c=a.substring(0,b),b=a.substring(b+this.separator.length),c){case "boolean":b="true"=== +b;break;case "number":b=parseFloat(b);break;case "array":b=""===b?[]:b.split(",");break;case "null":b=null;break;case "undefined":b=void 0}return b},backCompatibility:function(a){var b=a,c;"string"===typeof a&&(c=a.indexOf(this.separator),0>c&&(b=parseFloat(a),isNaN(b)&&("["===a[0]&&"]"===a[a.length-1]?(a=a.replace("[",""),a=a.replace("]",""),b=""===a?[]:a.split(",")):b="true"===a||"false"===a?"true"===a:a),b=this.convertDataToString(b)));return b}},c={get:function(a){return b.restoreDataFromString(window.localStorage.getItem(a))}, +set:function(a,c){var d=b.convertDataToString(c);window.localStorage.setItem(a,d)},del:function(a){window.localStorage.removeItem(a)},clear:function(){window.localStorage.clear()}},d={expiration:31622400,get:function(a){return b.restoreDataFromString(this.getCookie(a))},set:function(a,c){var d=b.convertDataToString(c);this.setCookie(a,d,{expires:this.expiration})},del:function(a){this.deleteCookie(a)},getCookie:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, +"\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},setCookie:function(a,b,c){c=c||{};var d=c.expires;if("number"===typeof d&&d){var e=new Date;e.setTime(e.getTime()+1E3*d);d=c.expires=e}d&&d.toUTCString&&(c.expires=d.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var h in c)b=c[h],a+="; "+h,!0!==b&&(a+="\x3d"+b);document.cookie=a},deleteCookie:function(a){this.setCookie(a,null,{expires:-1})},clear:function(){for(var a=document.cookie.split(";"),b=0;b