onchange event isn't triggered when quoting, fix that.
This commit is contained in:
parent
76b84c9a14
commit
1e7d22223e
@ -1261,7 +1261,8 @@
|
||||
caretPos = ta.selectionStart;
|
||||
ta.value = ta.value.slice(0, caretPos) + text + ta.value.slice(ta.selectionEnd, ta.value.length);
|
||||
ta.focus();
|
||||
return ta.selectionEnd = ta.selectionStart = caretPos + text.length;
|
||||
ta.selectionEnd = ta.selectionStart = caretPos + text.length;
|
||||
return qr.selected.com = ta.value;
|
||||
},
|
||||
fileDrop: function(e) {
|
||||
if (/TEXTAREA|INPUT/.test(e.target.nodeName)) return;
|
||||
|
||||
@ -931,6 +931,9 @@ qr =
|
||||
#move the caret to the end of the new quote
|
||||
ta.selectionEnd = ta.selectionStart = caretPos + text.length
|
||||
|
||||
# onchange event isn't triggered, save value
|
||||
qr.selected.com = ta.value
|
||||
|
||||
fileDrop: (e) ->
|
||||
return if /TEXTAREA|INPUT/.test e.target.nodeName
|
||||
e.preventDefault()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user