EditorSelectionOrCaret
Official
Represents a selection or caret in the editor
Import:
import type { EditorSelectionOrCaret } from 'obsidian';Signature:
export interface EditorSelectionOrCaretProperties
| Property | Type | Description | |
|---|---|---|---|
| anchor | EditorPosition | The selection start position. | |
| head? | EditorPosition | The selection end position. If not provided, the caret is used. |