Some background: We have a bundled prosemirror editor that has UI components outside of the editor. Right now when you hover on some of those elements it should apply a hover class to the element in the prosemirror dom. Now, you can apply those directly but sometimes prosemirror’s tree updater will determine you have dirtied the dom and react appropriately. The element itself is a contentless widthless node that goes in the editor as a note.
The question: How would you add classes to the inline nodes without accidentally destroying them with the tree updater? If not what is the best way to add a class to a prosemirror node without doing so directly in prosemirror, assuming you can still call functions to the editor. The editor itself has no idea about anything outside of itself. I’m starting to lean toward a rendering attribute but, we have a collab component where I’d like this to remain a client side transaction/rendering thing.