This commit is contained in:
Aevann1 2022-01-22 22:15:44 +02:00
parent 648b21a73c
commit 05e0874d1a
2 changed files with 4 additions and 3 deletions

View file

@ -76,9 +76,10 @@ function openReplyBox(id) {
let text = getSelection().toString()
if (text)
{
text = text.replace(/\n\n/g,"\n\n>").replace(/>\n\n/g,"\n\n")
text = '>' + text
if (!text.endsWith('\n\n')) text += '\n\n'
textarea.value = `>${text}`
text = text.replace(/\n\n/g,"\n\n>").replace(/>\n\n/g,"\n\n")
textarea.value = text
}
element.classList.remove('d-none')
textarea.focus()

View file

@ -864,7 +864,7 @@
{% if v %}
<script src="/static/assets/js/marked.js?a=220"></script>
<script src="/static/assets/js/comments_v.js?a=226"></script>
<script src="/static/assets/js/comments_v.js?a=227"></script>
{% endif %}
<script src="/static/assets/js/clipboard.js?a=220"></script>