DS Server

Javascript: InputPositionChangedEventArgs.textPosition Property

Property|Introduced in 24.0

Description

The 0-based text position of the current text input position.

Syntax

<number> InputPositionChangedEventArgs.textPosition

Examples

The following example demonstrates InputPositionChangedEventArgs.textPosition in a practical document-editing workflow. The 0-based text position of the current text input position.

function inspectTextPosition(inputPositionChangedEventArgs) {
    const textPosition = inputPositionChangedEventArgs.textPosition;
    console.log("text position:", textPosition);
}