I’m trying out the editor tiptap (instead of slate) that is on top of ProseMirror and benefit of the official binding support.
I have the issue that I cannot have the delta of a format in the text. I have two snapshots, call text.toDelta(nextSnapshot, prevSnapshot, (type, { client }) => ({ type, client })) but do not get the ychange on a format change
Note: I’m using the latest version yjs@npm:13.5.38
That would be awesome, in my case I strongly need this snapshot/delta feature (even more that realtime aspect) since in our app it is important to have a fully versioned document with who made what where.
My goal is to have prosemirror decorations that show the delta from the last update and also when you have a look the the version history.
Today I’m computing the changes on XmlFragment, XmlElement and XmlText via the snapshot and the clock dictionary. I was using toDelta on the text to simplify my life but since it is missing for format changes I would have to have a manual implementation I guess.
Is it actually a bug that this value is not there for format?
I would love to have a have a workaround to finish my migration to the tiptap/prosemirror
Hi @dmonad, sorry to at you, I would love to have a way to finish this. If you see anything I can do to detect a format changes on a XmlText made by a clientID that would be awesome, otherwise I think I would have to dig down in the internals to make something out of it.
If you want to implement this now, you definitely have to work your way through it. I currently have time for this. Maybe start with the prosemirror-versions demo.