y-prosemirror icon indicating copy to clipboard operation
y-prosemirror copied to clipboard

Inspect meta of `appendedTransaction` for possible `addToHistory:false`

Open romansp opened this issue 2 years ago • 1 comments

Resolves #141.

Using the same approach as in native prosemirror-history, added inspection of appendedTransaction meta for possible addToHistory: false to prevent root transaction from appearing on the undo/redo stack.

Added a test case that covers expected behavior.

romansp avatar Sep 13 '23 17:09 romansp

Great fix for developers trying to chain multiple commands together but only have one undo / redo for all using the appendedTransaction meta.

BrianHung avatar Feb 16 '24 05:02 BrianHung