芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/tvc.mgaplay.com.br/web/dist/vendor/ckeditor/plugins/wsc/dialogs/wsc_ie.js
CKEDITOR.dialog.add("checkspell",(function(e){function t(t){var n=new window._SP_FCK_LangCompare,c=CKEDITOR.getUrl(e.plugins.wsc.path+"dialogs/"),d=c+"tmpFrameset.html";window.gFCKPluginName="wsc",n.setDefaulLangCode(e.config.defaultLanguage),window.doSpell({ctrl:i,lang:e.config.wsc_lang||n.getSPLangCode(e.langCode),intLang:e.config.wsc_uiLang||n.getSPLangCode(e.langCode),winType:o,onCancel:function(){t.hide()},onFinish:function(n){e.focus(),t.getParentEditor().setData(n.value),t.hide()},staticFrame:d,framesetPath:d,iframePath:c+"ciframe.html",schemaURI:c+"wsc.css",userDictionaryName:e.config.wsc_userDictionaryName,customDictionaryName:e.config.wsc_customDictionaryIds&&e.config.wsc_customDictionaryIds.split(","),domainName:e.config.wsc_domainName}),CKEDITOR.document.getById(a).setStyle("display","none"),CKEDITOR.document.getById(o).setStyle("display","block")}var n,o="cke_frame_"+(c=CKEDITOR.tools.getNextNumber()),i="cke_data_"+c,a="cke_error_"+c,c=document.location.protocol||"http:",d=e.lang.wsc.notAvailable,l='
</textarea>
',s=e.config.wsc_customLoaderScript||c+"//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid="+e.config.wsc_customerId+"&cmd=script&doc=wsc&schema=22";return e.config.wsc_customLoaderScript&&(d+='
'+e.lang.wsc.errorLoading.replace(/%s/g,e.config.wsc_customLoaderScript)+"
"),window._cancelOnError=function(t){if(void 0===window.WSC_Error){CKEDITOR.document.getById(o).setStyle("display","none");var n=CKEDITOR.document.getById(a);n.setStyle("display","block"),n.setHtml(t||e.lang.wsc.notAvailable)}},{title:e.config.wsc_dialogTitle||e.lang.wsc.title,minWidth:485,minHeight:380,buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var o=this.getContentElement("general","content").getElement();o.setHtml(l),o.getChild(2).setStyle("height",this._.contentSize.height+"px"),"function"!=typeof window.doSpell&&CKEDITOR.document.getHead().append(CKEDITOR.document.createElement("script",{attributes:{type:"text/javascript",src:s}})),o=e.getData(),CKEDITOR.document.getById(i).setValue(o),n=window.setInterval(function(e,o){var i=0;return function(){"function"==typeof window.doSpell?(void 0!==n&&window.clearInterval(n),t(e)):180==i++&&window._cancelOnError(o)}}(this,d),250)},onHide:function(){window.ooo=void 0,window.int_framsetLoaded=void 0,window.framesetLoaded=void 0,window.is_window_opened=!1},contents:[{id:"general",label:e.config.wsc_dialogTitle||e.lang.wsc.title,padding:0,elements:[{type:"html",id:"content",html:""}]}]}})),CKEDITOR.dialog.on("resize",(function(e){var t=(e=e.data).dialog;"checkspell"==t._.name&&((t=(t=t.getContentElement("general","content").getElement())&&t.getChild(2))&&t.setSize("height",e.height),t&&t.setSize("width",e.width))}));