X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fwsc%2Fdialogs%2Fwsc.js;h=b084384b1daa126fdd96c9e6d72768160ce7241c;hp=fbc2f7798ef3d38c6a1c3781134d93979dac961e;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d diff --git a/_source/plugins/wsc/dialogs/wsc.js b/_source/plugins/wsc/dialogs/wsc.js index fbc2f77..b084384 100644 --- a/_source/plugins/wsc/dialogs/wsc.js +++ b/_source/plugins/wsc/dialogs/wsc.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -84,7 +84,9 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) window.doSpell({ ctrl : textareaId, - lang : LangComparer.getSPLangCode( editor.langCode ), + + lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ), + intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ), winType : iframeId, // If not defined app will run on winpopup. // Callback binding section. @@ -105,7 +107,12 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) iframePath : pluginPath + 'ciframe.html', // Styles defining. - schemaURI : pluginPath + 'wsc.css' + schemaURI : pluginPath + 'wsc.css', + + userDictionaryName: editor.config.wsc_userDictionaryName, + customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","), + domainName: editor.config.wsc_domainName + }); // Hide user message console (if application was loaded more then after timeout). @@ -114,7 +121,7 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) } return { - title : editor.lang.spellCheck.title, + title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, minWidth : 485, minHeight : 380, buttons : [ CKEDITOR.dialog.cancelButton ], @@ -153,7 +160,7 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) contents : [ { id : 'general', - label : editor.lang.spellCheck.title, + label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title, padding : 0, elements : [ {