Skip to content

Cm5EditorChange

Unofficial

Represents a change made to a CodeMirror 5 document.

Import:

import type { Cm5EditorChange } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Cm5EditorChange

Properties

PropertyTypeDescription
fromPositionThe start position of the change.
origin?stringThe origin of the change.
removed?string[]The text that was removed by the change.
textstring[]The new text that was inserted.
toPositionThe end position of the change.

Links to this page: