I’m working on an editor that will highlight words that match certain rules, which I got working with the help of the linting example!
It looks and works great but my next step is adding a tooltip to those words that the linter picks up and… that’s where I’m stuck.
I’m adding classes with
Decoration.inline but is there a way I can wrap the values in a span with a click function?
Any tips or pointers would be awesome