TX Text Control .NET Server

Proofing Object

Object|Introduced in 25.0

Description

A JavaScript object which was introduced to act as a namespace for all proofing and spell checking methods and properties.

Syntax

TXTextControl.Proofing

Examples

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

MethodDescription
addWordToUserDictionaryAdds a word to an existing user dictionary.
getDictionaryListRetrieves a list of the names of all dictionary files on the server.
getUserDictionaryInfoRetrieves information about all currently existing user dictionaries via a callback function.
loadDictionaryLoads a dictionary.
loadUserDictionaryLoads a list of words given as a string array as a user dictionary.
removeDictionaryRemoves a dictionary from the loaded dictionaries.
removeUserDictionaryRemoves an existing user dictionary.
removeWordFromUserDictionaryRemoves a word from an existing user dictionary.
saveUserDictionarySaves an existing user dictionary by supplying the contained words as a string array to a callback function.