Show More
@@ -36,6 +36,11 b' function moveCaretToEnd(el) {' | |||||
36 |
|
36 | |||
37 | function addQuickReply(postId) { |
|
37 | function addQuickReply(postId) { | |
38 | var textToAdd = '>>' + postId + '\n\n'; |
|
38 | var textToAdd = '>>' + postId + '\n\n'; | |
|
39 | var selection = window.getSelection().toString(); | |||
|
40 | if (selection.length > 0) { | |||
|
41 | textToAdd += '> ' + selection; | |||
|
42 | } | |||
|
43 | ||||
39 | var textAreaId = 'textarea'; |
|
44 | var textAreaId = 'textarea'; | |
40 | $(textAreaId).val($(textAreaId).val()+ textToAdd); |
|
45 | $(textAreaId).val($(textAreaId).val()+ textToAdd); | |
41 |
|
46 |
General Comments 0
You need to be logged in to leave comments.
Login now