Skip to content

EditorChange

Official

Represents a change to the editor

Import:

import type { EditorChange } from 'obsidian';

Signature:

export interface EditorChange extends EditorRangeOrCaret

Extends: EditorRangeOrCaret

Properties

Property Type Description
from EditorPosition The start position.
(Inherited from EditorRangeOrCaret)
text string The text to replace the range with.
to? EditorPosition The end position. If not provided, the caret is used.
(Inherited from EditorRangeOrCaret)

Links to this page: