Skip to content

EditorSelectionOrCaret

Official

Represents a selection or caret in the editor

Import:

import type { EditorSelectionOrCaret } from 'obsidian';

Signature:

export interface EditorSelectionOrCaret

Properties

PropertyTypeDescription
anchorEditorPositionThe selection start position.
head?EditorPositionThe selection end position. If not provided, the caret is used.