DS Server

Javascript: FormattedText.misspelledWords Property

Property|Introduced in 28.0

Description

Gets a collection of all misspelled words.

Syntax

<MisspelledWordCollection> FormattedText.misspelledWords

Examples

The following example demonstrates FormattedText.misspelledWords in a practical document-editing workflow. It gets a collection of all misspelled words.

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

TXTextControl.textParts.getMainText(function(formattedText) {
    formattedText.misspelledWords.getCount(function(count) {
        console.log("misspelled words count:", count);
    }, onTxError);
}, onTxError);

Limitations

Read Only.