Javascript: TXTextControl.getInsertionMode Method
Description
Gets the insertion mode.
Syntax
<void> TXTextControl.getInsertionMode(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.getInsertionMode in a practical document-editing workflow. It gets the insertion mode.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.getInsertionMode(
function(result) {
console.log("get insertion mode result:", result);
},
onTxError
);