DS Server

Javascript: TXTextControl.Proofing.addWordToUserDictionary Method

Method|Introduced in 25.0

Description

Adds a word to an existing user dictionary.

Syntax

<void> TXTextControl.Proofing.addWordToUserDictionary(<string> name, <string[]> words)

Parameters

ParameterDescription
name

The user dictionary's name.

words

The word to add to the user dictionary.

Examples

The following example demonstrates TXTextControl.Proofing.addWordToUserDictionary in a practical document-editing workflow. It adds a word to an existing user dictionary.

function addWordToUserDictionary(proofing) {
    proofing.addWordToUserDictionary("QuarterlyReport", ["Quarterly report", "Invoice"]);
}