Removes the specified misspelled word from a Text Control document. The method removes the word's reference in the list of misspelled words and replaces the word's text with the specified text.

Introduced: X18.

<void> MisspelledWordCollection.remove(<MisspelledWord> misspelledWord, <String> correctedText, <RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

Parameter Description
misspelledWord Specifies the misspelled word to remove.
correctedText Specifies the corrected text. The current text of the word is replaced with this text.
callback Receives whether the misspelled word could be removed.
errorCallback Optional. Is called when the operation failed with an error.