Custom color assignments for mentions in rich text elements

How is it possible to assign different colors to mentions in the rich text element? For example, that @Max is green and @Lisa is blue. I can save the color information in an array of the mentions, but how can I then bind the color dynamically in the rich text? In the tag editor, there is no possibility to set a reference to the mentions, right?


Bildschirmfoto 2023-10-28 um 11.32.31

No need to mention me :wink:

I think that is not possible at the moment

You can make your own mention logic with the custom menu and then pass whatever you want. It’s probably not gonna be on typing, but on highlight, like a bold/link, that could work.

There you can definitely come up with something, but out of the box, i don’t think there is anything like this.

Another way, would be using regex to detect the “@mention” pattern, and then append a select after a span wrapped word, but I think this would require some js. If you have the time, I think it’s defo possbile even in no-code.

1 Like

:sweat_smile: :sweat_smile: :sweat_smile: