Skip to content

EditorSelectionOrCaret

Official

Represents a selection or caret in the editor

Import:

import type { EditorSelectionOrCaret } from 'obsidian';

Signature:

export interface EditorSelectionOrCaret

Properties

Property Type Description
anchor EditorPosition The selection start position.
head? EditorPosition The selection end position. If not provided, the caret is used.