/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
window.doSpell({\r
ctrl : textareaId,\r
- lang : LangComparer.getSPLangCode( editor.langCode ),\r
+\r
+ lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ),\r
+ intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ),\r
winType : iframeId, // If not defined app will run on winpopup.\r
\r
// Callback binding section.\r
iframePath : pluginPath + 'ciframe.html',\r
\r
// Styles defining.\r
- schemaURI : pluginPath + 'wsc.css'\r
+ schemaURI : pluginPath + 'wsc.css',\r
+\r
+ userDictionaryName: editor.config.wsc_userDictionaryName,\r
+ customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","),\r
+ domainName: editor.config.wsc_domainName\r
+\r
});\r
\r
// Hide user message console (if application was loaded more then after timeout).\r
}\r
\r
return {\r
- title : editor.lang.spellCheck.title,\r
+ title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,\r
minWidth : 485,\r
minHeight : 380,\r
buttons : [ CKEDITOR.dialog.cancelButton ],\r
contents : [\r
{\r
id : 'general',\r
- label : editor.lang.spellCheck.title,\r
+ label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,\r
padding : 0,\r
elements : [\r
{\r