Javascript: InputPositionChangedEventArgs.textPosition Property
Description
The 0-based text position of the current text input position.
Syntax
<number> InputPositionChangedEventArgs.textPositionExamples
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);
}