fdssdf
This commit is contained in:
parent
05e0874d1a
commit
ad94a82bfc
2 changed files with 4 additions and 5 deletions
|
@ -76,10 +76,9 @@ function openReplyBox(id) {
|
||||||
let text = getSelection().toString()
|
let text = getSelection().toString()
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
text = '>' + text
|
textarea.value = '>' + text
|
||||||
if (!text.endsWith('\n\n')) text += '\n\n'
|
if (!textarea.value.endsWith('\n\n')) textarea.value += '\n\n'
|
||||||
text = text.replace(/\n\n/g,"\n\n>").replace(/>\n\n/g,"\n\n")
|
textarea.value = textarea.value.replace(/\n\n/g,"\n\n>").replace(/>\n\n/g,"\n\n")
|
||||||
textarea.value = text
|
|
||||||
}
|
}
|
||||||
element.classList.remove('d-none')
|
element.classList.remove('d-none')
|
||||||
textarea.focus()
|
textarea.focus()
|
||||||
|
|
|
@ -864,7 +864,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script src="/static/assets/js/marked.js?a=220"></script>
|
<script src="/static/assets/js/marked.js?a=220"></script>
|
||||||
<script src="/static/assets/js/comments_v.js?a=227"></script>
|
<script src="/static/assets/js/comments_v.js?a=228"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue