I have a custom inline node and I want to display a little annotation number at the end of it. That annotation must be bound to that node and be removed when the node is removed and must not be separated from the node as well. also it should not be possible to edit it. What would be the recommended approach for that?
I considered 2 things:
- Create a custom inline node called “annotation” but it will presumably appear that separating it from node next to it would be very easy
- Somehow create a non document node for my original custom node, like absolute div and position it. But it will mean I will have to add paddings to the right side of original custom node
Anything better?