Looks like the link creator button expects a URL and adds the place for the anchor text.
Instead, it needs to detect a URL. It should also look at the clipboard and do the right thing with clipboard content.
Looks like the link creator button expects a URL and adds the place for the anchor text.
Instead, it needs to detect a URL. It should also look at the clipboard and do the right thing with clipboard content.
Yes a regex checking for a valid URL would do. If valid, place selection in link, else place as title.
Yup. Also, look at clipboard. If selection isn’t a URL and clipboard is a URL, put the selection in title and clipboard in link. And vise versa if selection isn’t a URL.