CaretPosition

open class CaretPosition(source)

The CaretPosition interface represents the caret position, an indicator for the text insertion point.

MDN Reference

Properties

Link copied to clipboard
val offset: Int

The offset property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node.

Link copied to clipboard

The offsetNode property of the CaretPosition interface returns a Node containing the found node at the caret's position.

Functions

Link copied to clipboard

The getClientRect() method of the CaretPosition interface returns the client rectangle for the caret range.