Closed monk-time closed 7 years ago
Dragging plaintext URLs works only if selection starts on the first character of the URL, but not if any whitespace is accidentally included before it, which is very trivial to do if the URL is on a separate line and selection grabs \n.
\n
I think the easiest way around would be to include a single .trim() into the dragend event listener.
.trim()
dragend
edit: #4 is a less specific duplicate of this issue. Or vice versa 😒
Fixed on v1.0.3
Dragging plaintext URLs works only if selection starts on the first character of the URL, but not if any whitespace is accidentally included before it, which is very trivial to do if the URL is on a separate line and selection grabs
\n
.I think the easiest way around would be to include a single
.trim()
into thedragend
event listener.edit: #4 is a less specific duplicate of this issue. Or vice versa 😒