Skip to content

EditorRangeOrCaret

Official

Represents a range or caret in the editor

Import:

import type { EditorRangeOrCaret } from 'obsidian';

Signature:

export interface EditorRangeOrCaret

Properties

Property Type Description
from EditorPosition The start position.
to? EditorPosition The end position. If not provided, the caret is used.

Links to this page: