Store additional metadata for a Range

Is there a way to store additional metadata for Range? Like in the underline example but every underline range I would like to map to some custom data. Or I’m going totally in the wrong direction?

Thanks in advance

1 Like

It is possible to put additional properties in your decoration spec objects.

2 Likes

Thank you for the quick reply, that solved my question.