##// END OF EJS Templates
Adding selected text to the reply
neko259 -
r629:7a45a988 default
parent child Browse files
Show More
@@ -36,6 +36,11 b' function moveCaretToEnd(el) {'
36 36
37 37 function addQuickReply(postId) {
38 38 var textToAdd = '>>' + postId + '\n\n';
39 var selection = window.getSelection().toString();
40 if (selection.length > 0) {
41 textToAdd += '> ' + selection;
42 }
43
39 44 var textAreaId = 'textarea';
40 45 $(textAreaId).val($(textAreaId).val()+ textToAdd);
41 46
General Comments 0
You need to be logged in to leave comments. Login now