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

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

1 Like

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