first of all: I really like CodeMirror - it is the best js code handler I know.
Now I want to use it within a project of mine. I’d like to extend the gfm / markdown mode with the ability of clickable links.
I tried something like:
var et = $(e.target);
window.console.log( $(e.target).attr(‘class’) );
Thanks to GFM mode, the links are already assigned their own class (cm-url).
But that only works from time to time.
One reason for this is that if the cursor is already placed on the link, it will catch all clicks…
Also I tried to use something like the multiplexingMode, but this let me only assign a wrapper I think.
Could you please help me to make urls clickable?