Add support for disabling spell checking (#8604)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8379f5624e
commit
bd30b75f79
9 changed files with 52 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue