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 10:10:04 +02:00 committed by GitHub
parent 8379f5624e
commit bd30b75f79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 52 additions and 17 deletions

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 {