Skip to content

EditorTransaction

Official

Transaction for the editor

Import:

import type { EditorTransaction } from 'obsidian';

Signature:

export interface EditorTransaction

Properties

PropertyTypeDescription
changes?EditorChange[]The changes to the editor.
replaceSelection?stringThe replacement text.
selection?EditorRangeOrCaretThe main selection.
selections?EditorRangeOrCaret[]List of selections for multiple cursors.