Show differences between two versions?

What I want: Given two versions of a Prosemirror Document, show the user the differences (changes and subtractions). Is there a way to do this?

I am saving snapshots of the Prosemirror Document every time the user hits save. But I’m not saving the transforms or steps used to make each version. Instead I’m using an open source library I found online called @manuscripts/prosemirror-recreate-steps recreateTransform.

How do I use the prosemirror-changeset library to display the additions and the subtractions to the user in a Read-Only view? I haven’t figured out how to do that correctly yet. I am still investigating. But if anyone has an example, I’d love to see it!

If I succeed in building this, I will share my code.

1 Like

prosemirror-changeset works with steps. If you don’t have the steps that made the changes, it won’t help you. You’ll have to write some kind of diffing utility for ProseMirror documents, by the sound of it.

Pls is it solved? I have the same problem as you, would you like to share it with me,Thanks