[MM-36747] Spellchecker custom urls (cherrypick to TS) (#1669)

* [MM-36747] Allow users to specify spellchecker url for downloading dictionaries

* fix settings keys

Co-authored-by: = <=>
This commit is contained in:
Guillermo Vayá
2021-07-26 15:28:49 +02:00
committed by GitHub
parent f5ca0f9ef5
commit d77c823bd5
5 changed files with 129 additions and 10 deletions

View File

@@ -229,6 +229,11 @@ export default class Config extends EventEmitter {
get useSpellChecker() {
return this.combinedData?.useSpellChecker ?? defaultPreferences.useSpellChecker;
}
get spellCheckerURL(): (string|undefined) {
return this.combinedData?.spellCheckerURL;
}
get spellCheckerLocale() {
return this.combinedData?.spellCheckerLocale ?? defaultPreferences.spellCheckerLocale;
}