Proofing Object
Description
A JavaScript object which was introduced to act as a namespace for all proofing and spell checking methods and properties.
Syntax
TXTextControl.ProofingExamples
The following example demonstrates TXTextControl.Proofing in a practical document-editing workflow. A JavaScript object which was introduced to act as a namespace for all proofing and spell checking methods and properties.
function inspectProofing(proofing) {
proofing.getDictionaryList(
function(dictionaries) {
if (!dictionaries) {
console.warn("No dictionary info was returned.");
return;
}
console.log("get dictionary list result:", dictionaries);
}
);
}Members
Methods
| Method | Description |
|---|---|
| addWordToUserDictionary | Adds a word to an existing user dictionary. |
| getDictionaryList | Retrieves a list of the names of all dictionary files on the server. |
| getUserDictionaryInfo | Retrieves information about all currently existing user dictionaries via a callback function. |
| loadDictionary | Loads a dictionary. |
| loadUserDictionary | Loads a list of words given as a string array as a user dictionary. |
| removeDictionary | Removes a dictionary from the loaded dictionaries. |
| removeUserDictionary | Removes an existing user dictionary. |
| removeWordFromUserDictionary | Removes a word from an existing user dictionary. |
| saveUserDictionary | Saves an existing user dictionary by supplying the contained words as a string array to a callback function. |