Hi All,

Not sure if this is a bug, or my stupidity! So like many others I have been attempting to set my default language and spellcheck to British English, without much luck. In doing so I have noticed a little error.

I have added the following settings:

config.language = 'en-gb';
config.wsc_lang = "en_GB";
config.scayt_sLang = 'en_GB';
config.scayt_defLan = 'en_GB';

I have tried this in the "Custom JavaScript configuration" settings, I have tried it in "ckeditor.config.js" and various other places. What I expect is for the language and dictionary both to default to British English. What I get is they default to American English. That is both Scayt and Spell check revert.

So I dig a little deeper thinking it might be Scayt causing the issue. So I say in settings "No" to Scayt loading automatically. That is fine, CKEditor loads, I click spell check ant it is default to British English. I then do the dropdown and enable Scayt. The Spell check remains in British English but Scayt is in American English.

So is this a bug? Am I doing something stupid?
Nick

Comments

nickbits created an issue. See original summary.

markusd1984’s picture

Pitty nobody responded so far but I came across this and found a solution mentioned at https://github.com/ckeditor/ckeditor-dev/issues/1678 that

You must also disable the user's ability to specify a default language in the UI:

config.scayt_disableOptionsStorage = 'lang';
config.scayt_sLang = 'en_GB';

worked :)

tunprog’s picture

This helped me. Thanks a lot.

vokiel’s picture

Status: Active » Closed (works as designed)