HI Marjin,
First of all, thank you for the solidly engineered prosemirror. We are building our product around this editor.
I had a quick question regarding tables,
I am setting a custom attribute in tablecell based on content within the cell, using appendTransaction & setNodeMarkup.
The attribute of course gets set (has no change in the document in UI). However when user does UNDO the attribute doesn’t get reverted.
Is this expected?
Do you have any recommendations to work around this?
That should only happen if the transaction to which your update is appeneded has addToHistory set to false. If it behaves differently, can you reduce the problem to as small a script/schema as possible so that I can take a look?
That’s not a self-contained script, nor has it been reduced to the minimum needed to reproduce the issue.
In any case, an appendTransaction function that always appends a transaction, like the plugin you shows does, would just immediately lock up the editor or cause a stack overflow, so that’s something to keep in mind.