I have two instances of the Editor. The first is the main editor, and the second is a duplicate modal editor that expands to full screen. Is there any way to synchronize the undo history between these two instances?
According to the documentation, I know that I can serialize the state by using toJSON
in one editor and then deserialize it using fromJSON
in the other. However, the state.toJSON()
method does not serialize the undo history.
I tried to save the unserialized state and then apply it to another editor using view.updateState()
, but this caused errors due to mismatched transactions and position out of range.