I’m trying to temporarily prevent a transaction from occurring until a user confirms an action.
So I’d like to undo a user’s edits, save it, and apply it once they confirm the action.
I tried looking at history plugin and the tracking changes example, but there’s a lot of code involved so it’s hard to know what’s absolutely necessary.
Wondering if anyone more experienced would be kind enough to post a minimal example?
(Upon writing this I’ve thought of potential ways that I could do the above without touching steps, mappings etc. but I figure this is a good chance to get to know Prosemirror better, so any comments are appreciated!)