so as I’m messing around with the snapshotting feature I noticed my node attributes are not persisted in the snapshot.
Use the @ symbol in the toolbar to toggle a “makeMeRed” attribute to either a paragraph or blockquote. I wonder what I’m doing wrong here. The code is basically the same as in the prosemirror-versions demo.
I’ve added console.logs to yjs/y-prosemirror in the demo which shows ‘makeMeRed’ is retrieved but always the current value of the said node. I recall Kevin saying that snapshots are not finished so perhaps this is one of those parts? Having written all this, I’m pretty sure it’s about that snapshot parameter not being used to retrieve the current value of the node attribute?
(Also as a sidenote, it seems the renderSnapshot plays a bit weird with the paragraphs inside a blockquote)
Not really. I guess I could open a bug issue but not sure exactly is this a yjs or y-prosemirror thing. Definitely would need this fixed at some point as I as well need those attributes shown. Somebody did take a stab at it Maybe a Bug in snapshots · Issue #82 · yjs/y-prosemirror · GitHub but their demo was a bit lackluster.