Example of creating a Tooltip


I am trying to figure out how CM6 works with its extensions. I am struggling to understand how to it reacts to events and how to insert new views into editor based on certain triggers by the user.

One of the simplest things I am trying to understand is how to create a Tooltip and add it to the editor. Is there any documentation or piece of code I can refer to help me with this?

Thanks for all the work in building this system. A better documentation or a tutorial would be of immense help. I am more than happy to assist in building such a repository.


There’s a tooltip example online at https://codemirror.net/6/examples/tooltip/ now.