cssStyles adds styling to the node. tr is a transaction. I would like to add multiple steps to the transaction and dispatch it only once. The problem is that the ReplaceStep seems to append to the node instead of replacing it. How do I replace the node?
This isn’t supported in ProseMirror—because they may include opaque metadata that describes exactly the changes that transaction makes, arbitrary transactions can’t be combined.
Thanks for your response. No, I keep getting this error: TransformError: Gap is not a flat range I followed your code quite well but I keep getting that error.