Command+k is a popular keybinding to insert a link, so I made a basic implementation of this with ProseMirror.
1 Like
You should return true
from the function bound to the key—on many browsers, ctrl-k focuses the URL bar, and if the command doesn’t indicate that it handled the key, the default behavior will go through.
Thanks for reviewing! I updated the code to fix that bug.
I am impressed this mildly hacky solution works with ProseMirror 2 1/2 years later and doesn’t require any updates from the original. Great work with the stability here.