TX Text Control .NET Server

Javascript: TXTextControl.getInsertionMode Method

Method|Introduced in 34.0

Description

Gets the insertion mode.

Syntax

<void> TXTextControl.getInsertionMode(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
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
);