SpellCheckState
Constructors
Properties
Words the user chose to ignore this session, through ignoreWord.
Whether spell checking is currently active. Toggle via setSpellCheckingEnabled.
Functions
Apply a sentence-level correction. Its flag is kept as correctSpelling keeps a word's.
Run spell check on a specific word segment. This will remove any existing spell check spans for the word and add a new one if misspelled.
Replace a misspelled word with the chosen correction.
Gather correction suggestions for a word.
Handle click for sentence-level corrections only. Use this when you specifically need a Correction.
Handle click on a spell check span.
Handle click for word-level misspellings only. Use this when you specifically need a WordSegment.
Stop flagging word for the rest of this session, whichever checker is in use, and clear its current flags. word is the flagged text: the word, or a sentence issue's Correction.originalText, which is matched exactly. A word in lowercase also clears capitalised and in capitals, as a dictionary matches case; one capitalised only at its start is taken for a sentence's first word and matched as its lowercase. One with other capitals, such as "NASA" or "iPhone", clears only as written.
Remove spell-check decorations affected by an edit operation.
Remove the spell-check decorations operations affected, edits that landed one after another with no other since: each is read in the text after it, as moved by those after it. See the overload for one edit.
Run full spell check based on the current mode.
Run partial spell check based on the current mode.
Enable or disable spell checking.