Selectable text in overaly decoration



Is it possible to use a marker decoration of type overlay to create a tooltip box, such that the text within the created tooltip be selectable (and copiable) by mouse?



I haven’t tried it, but maybe you can use the native-key-bindings class on your overlay element.


Thanks for the response. I tried doing that, mostly through the developer console, but it doesn’t seem to have any effect. Though, being a newbie in these matters, it’s quite possible that I’m doing something wrong.