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

PropertyTypeDescription
fromEditorPositionThe start position.
(Inherited from EditorRangeOrCaret)
textstringThe text to replace the range with.
to?EditorPositionThe end position. If not provided, the caret is used.
(Inherited from EditorRangeOrCaret)

Links to this page: