Skip to content

EditorTransaction

Official

Transaction for the editor

Import:

import type { EditorTransaction } from 'obsidian';

Signature:

export interface EditorTransaction

Properties

Property Type Description
changes? EditorChange[] The changes to the editor.
replaceSelection? string The replacement text.
selection? EditorRangeOrCaret The main selection.
selections? EditorRangeOrCaret[] List of selections for multiple cursors.