ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.59k stars 335 forks source link

Save history in order to replay undo-related bugs #1392

Closed arnaud-secondlayer closed 1 year ago

arnaud-secondlayer commented 1 year ago

I'm facing a bug related to undo (Invalid content for node), it's quite difficult to reproduce. I'm pretty sure it's in our code and not in ProseMirror. I'd like to be able to export the history in order to be able to study the problem after it is reproduced. Is there a solution to export the current history in order to replay it later?

marijnh commented 1 year ago

No, that doesn't exist as a public interface. You could try looking through the (private) data structures in the history state, but it's going to require some study to understand what they mean.