feat: add session.listWordsFromSpellCheckerDictionary API (#22101)

* doesn't work yet but compiles.

* works

* fixup
This commit is contained in:
Erick Zhao 2020-02-10 14:08:53 -08:00 committed by GitHub
parent 6fe7d65c9d
commit 9942149f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 0 deletions

View file

@ -487,6 +487,11 @@ to host here.
**Note:** On macOS the OS spellchecker is used and therefore we do not download any dictionary files. This API is a no-op on macOS.
#### `ses.listWordsInSpellCheckerDictionary()`
Returns `Promise<String[]>` - An array of all words in app's custom dictionary.
Resolves when the full dictionary is loaded from disk.
#### `ses.addWordToSpellCheckerDictionary(word)`
* `word` String - The word you want to add to the dictionary