DS Server

Javascript: TXTextControl.MisspelledWordKind Enumeration

Enumeration|Introduced in 28.0

Description

Specifies the kind of a misspelled word.

Members

MemberDescription
AllSpecifies all misspelled words.
DuplicateSpecifies all misspelled words which are marked as duplicate.
IgnoredSpecifies all misspelled words which are marked as ignored.
NormalSpecifies all misspelled words which do not have a special meaning.

Examples

The following example uses TXTextControl.MisspelledWordKind.All (specifies all misspelled words.) in a document-editing workflow.

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

function applyMisspelledWordKind(misspelledWords) {
    misspelledWords.getCountOf(
        TXTextControl.MisspelledWordKind.All,
        function(result) {
            console.log("get count of result:", result);
        },
        onTxError
    );
}