forked from rDrama/rDrama
better quoting behavior
parent
0eefc9803c
commit
78712da50b
|
@ -69,6 +69,7 @@ function ToggleReplyBox(id) {
|
||||||
let text = getSelection().toString().trim()
|
let text = getSelection().toString().trim()
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
|
text = text.split('> \n> Reply')[0]
|
||||||
textarea.value = '> ' + text
|
textarea.value = '> ' + text
|
||||||
textarea.value = textarea.value.replace(/\n/g,"\n> ").replace(/\*/g,"\\*")
|
textarea.value = textarea.value.replace(/\n/g,"\n> ").replace(/\*/g,"\\*")
|
||||||
if (!textarea.value.endsWith('\n')) textarea.value += '\n'
|
if (!textarea.value.endsWith('\n')) textarea.value += '\n'
|
||||||
|
|
Loading…
Reference in New Issue