summaryrefslogtreecommitdiff
path: root/_source/plugins/wsc/dialogs/wsc.js
diff options
context:
space:
mode:
authorDaniel Sutcliffe <dansut@users.sourceforge.net>2010-02-02 17:54:17 +0000
committerDaniel Sutcliffe <dansut@users.sourceforge.net>2010-02-02 17:54:17 +0000
commitb1de4b213ba60402d6d13a2a6892d5a422c4f8e4 (patch)
treee4adb31477ee586349cd935365a84aaee50c5899 /_source/plugins/wsc/dialogs/wsc.js
parent8630f2bc4d63b3320f5469d9532a1cba1dddb7a3 (diff)
downloadckeditor-b1de4b213ba60402d6d13a2a6892d5a422c4f8e4.tar.gz
ckeditor-b1de4b213ba60402d6d13a2a6892d5a422c4f8e4.tar.bz2
ckeditor-b1de4b213ba60402d6d13a2a6892d5a422c4f8e4.zip
Update CKEditor to 3.1 and make work as a bw package
Diffstat (limited to '_source/plugins/wsc/dialogs/wsc.js')
-rw-r--r--_source/plugins/wsc/dialogs/wsc.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/_source/plugins/wsc/dialogs/wsc.js b/_source/plugins/wsc/dialogs/wsc.js
index 9f7496c..534dc69 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 : [
{