Add support for disabling spell checking (#8604)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Šimon Brandner
2022-07-28 08:10:04 +00:00
committed by GitHub
co-authored by Michael Telatynski
parent 8379f5624e
commit bd30b75f79
9 changed files with 52 additions and 17 deletions
+7 -1
View File
@@ -151,7 +151,7 @@ export default abstract class BasePlatform {
* Return true if platform supports multi-language
* spell-checking, otherwise false.
*/
public supportsMultiLanguageSpellCheck(): boolean {
public supportsSpellCheckSettings(): boolean {
return false;
}
@@ -274,6 +274,12 @@ export default abstract class BasePlatform {
public setLanguage(preferredLangs: string[]) {}
public setSpellCheckEnabled(enabled: boolean): void {}
public async getSpellCheckEnabled(): Promise<boolean> {
return null;
}
public setSpellCheckLanguages(preferredLangs: string[]) {}
public getSpellCheckLanguages(): Promise<string[]> | null {