TX Text Control .NET Server

Javascript: MisspelledWord.getIsIgnored Method

Method|Introduced in 28.0

Description

Gets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line

Syntax

<void> MisspelledWord.getIsIgnored(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives a value which marks the misspelled word as ignored.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates MisspelledWord.getIsIgnored in a practical document-editing workflow. It gets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectIsIgnored(misspelledWord) {
    misspelledWord.getIsIgnored(
        function(result) {
            if (result) {
                console.log("get is ignored is available.");
            } else {
                console.warn("get is ignored is not available in the current document state.");
            }
        },
        onTxError
    );
}