For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface CaretPosition

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

Was this helpful?