I’m working a tool where I’d like to have many code editors and RichText editors on a canvas. I’d like to try having a single global UndoManager instead of having a per editor undomanager as per the built in ones in most of the example integrations. I’ve banged my head against this for a few days. I stripped out the undo/redo and tried just using an UndoManager on a top level component, but the tiptap integration doesn’t seem to handle changes happening that didn’t come from the sync plugin or the initial indexeddb sync.
TLDR: I came across at some point a comment from I think Kevin mentioning having undo managers that are outside a single editor instance. Does anyone have an example or recommendations for how I’d implement this?
I’m building a zoomable canvas where you can place/resize as many code editors (Monaco) and RichText (tiptap or prosemirror) on the canvas. I can easily get multiple instances going at least for tiptap editors right now (I’m having issues with embedding a Monaco in next.js with existing example code).
Many thanks in advance!