Ticket #4816: #4816.patch

File #4816.patch, 2.2 KB (added by WebSpellChecker.net, 14 years ago)

wsc.js patch

  • wsc.js

     
    1 /*
     1/*
    22Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
     
    3636                        + '&customerid=' + editor.config.wsc_customerId
    3737                        + '&cmd=script&doc=wsc&schema=22'
    3838                );
    39 
     39       
     40       
     41       
    4042        if ( editor.config.wsc_customLoaderScript )
    4143                errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' +
    4244                        editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>';
     
    8183                window.gFCKPluginName = 'wsc';
    8284
    8385                LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
    84 
     86               
    8587                window.doSpell({
    8688                        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 ),
    8892                        winType : iframeId,             // If not defined app will run on winpopup.
    8993
    9094                        // Callback binding section.
     
    105109                        iframePath : pluginPath + 'ciframe.html',
    106110
    107111                        // 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                       
    109119                });
    110120
    111121                // Hide user message console (if application was loaded more then after timeout).
     
    114124        }
    115125
    116126        return {
    117                 title : editor.lang.spellCheck.title,
     127                title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
    118128                minWidth : 485,
    119129                minHeight : 380,
    120130                buttons : [ CKEDITOR.dialog.cancelButton ],
     
    153163                contents : [
    154164                        {
    155165                                id : 'general',
    156                                 label : editor.lang.spellCheck.title,
     166                                label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
    157167                                padding : 0,
    158168                                elements : [
    159169                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy