Token Text Field in JUCE?

Is there something like a token text field in JUCE where you can have text tokens as well as text in one text field?

Something like this (the buttons at the bottom add a token, clicking the token will highlight it and it can be deleted)

I couldn’t find anything yet. What do you think is the easiest approach of implementing this?


DragAndDrop + text replacement based on some property of the dragged elements. Check out how the Juce demo grabs the text of whatever you drop in the DragAndDrop demo.