Skip to content

EditorSelection

Official

Represents a selection in the editor

Import:

import type { EditorSelection } from 'obsidian';

Signature:

export interface EditorSelection

Properties

PropertyTypeDescription
anchorEditorPositionThe selection start position.
headEditorPositionThe selection end position.

Links to this page: