Can I decorate a Mark Node using Node Decorations

Hello.

Is it possible to decorate a mark node using node decorations?

I would like to use the tilde CSS selector with marks as the point of reference… Inline decorations are nested so are not suitable.

Required : <span>Mark 1</span><span class='sample' >Mark 2</span>

Not suitable : <span>Mark 1</span><span><span class='sample'>Mark 2</span></span>

No, those only work on nodes. I don’t think there’s currently a way to do what you’re asking.

Hi marjin,

I have a doubt for this, then how to mark/wrap node with a span and some attributes

this is my sample code but its mark only TextNodes, do you have any solution for this?