feat: add session.listWordsFromSpellCheckerDictionary API (#22101)
* doesn't work yet but compiles. * works * fixup
This commit is contained in:
parent
6fe7d65c9d
commit
9942149f3c
3 changed files with 68 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue