Decorations disallowed on text ndoes

Hello! I just wanted to ask, why were decorations disallowed for text nodes as of prosemirror-view 1.20.1?

I’ve switched my text node decorations to inline decorations, but I’m curious what the rationale here was in case I should make other changes to my approach.


Text nodes aren’t real nodes, and allowing node decorations on them was never an intentional design. They may be split (invalidating the decoration) at any time due to marks and such.

Thank you Marijn! That makes a lot of sense. Hopefully it should be fine to just switch to inline decorations wherever I’ve been using text node decorations.