Skip to content

ChangeDraft

The change that a command wants to make, before any plugin has looked at it. It is a list of deltas.

readonly deltas: readonly Delta[];

The modifications that make up the change, as Delta objects.


readonly skipped?: readonly Skipped[];

The items that an undo or a redo left untouched because they were modified in the meantime. They are reported together with the result.


readonly undoGroup?: string;

The undo step to which the change belongs. It is set when the command is not a step of undo by itself: an undo, for example, belongs to the step that it reverses.