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

MDN Reference

interface CaretPosition {
    offset: number;
    offsetNode: Node;
    getClientRect(): DOMRect | null;
}
Index

Properties

Methods

Properties

offset: number
offsetNode: Node

Methods

  • Returns DOMRect | null