Javascript: TXTextControl.getIsSpellCheckingEnabled Method
Description
Gets a value indicating whether spell checking is active or not.
Syntax
<void> TXTextControl.getIsSpellCheckingEnabled(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether spell checking is active or not. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.getIsSpellCheckingEnabled in a practical document-editing workflow. It gets a value indicating whether spell checking is active or not.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.getIsSpellCheckingEnabled(
function(result) {
if (result) {
console.log("get is spell checking enabled is available.");
} else {
console.warn("get is spell checking enabled is not available in the current document state.");
}
},
onTxError
);