Ticket #4816: #4816.patch
File #4816.patch, 2.2 KB (added by , 14 years ago) |
---|
-
wsc.js
1 /*1 /* 2 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 36 36 + '&customerid=' + editor.config.wsc_customerId 37 37 + '&cmd=script&doc=wsc&schema=22' 38 38 ); 39 39 40 41 40 42 if ( editor.config.wsc_customLoaderScript ) 41 43 errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' + 42 44 editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>'; … … 81 83 window.gFCKPluginName = 'wsc'; 82 84 83 85 LangComparer.setDefaulLangCode( editor.config.defaultLanguage ); 84 86 85 87 window.doSpell({ 86 88 ctrl : textareaId, 87 lang : LangComparer.getSPLangCode( editor.langCode ), 89 90 lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ), 91 intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ), 88 92 winType : iframeId, // If not defined app will run on winpopup. 89 93 90 94 // Callback binding section. … … 105 109 iframePath : pluginPath + 'ciframe.html', 106 110 107 111 // Styles defining. 108 schemaURI : pluginPath + 'wsc.css' 112 schemaURI : pluginPath + 'wsc.css', 113 114 115 userDictionaryName: editor.config.wsc_userDictionaryName, 116 customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","), 117 domainName: editor.config.wsc_domainName 118 109 119 }); 110 120 111 121 // Hide user message console (if application was loaded more then after timeout). … … 114 124 } 115 125 116 126 return { 117 title : editor. lang.spellCheck.title,127 title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, 118 128 minWidth : 485, 119 129 minHeight : 380, 120 130 buttons : [ CKEDITOR.dialog.cancelButton ], … … 153 163 contents : [ 154 164 { 155 165 id : 'general', 156 label : editor. lang.spellCheck.title,166 label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, 157 167 padding : 0, 158 168 elements : [ 159 169 {