Skip to content

EditorStateSelectionSpec

Unofficial

A selection specified as an anchor position and optional head position.

Import:

import type { EditorStateSelectionSpec } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface EditorStateSelectionSpec

Properties

Property Type Description
anchor number The anchor position of the selection.
head? number The head position of the selection.