forked from rDrama/rDrama
same as last commit
parent
78712da50b
commit
4bced848ee
|
@ -69,10 +69,12 @@ function ToggleReplyBox(id) {
|
||||||
let text = getSelection().toString().trim()
|
let text = getSelection().toString().trim()
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
text = text.split('> \n> Reply')[0]
|
text = '> ' + text
|
||||||
textarea.value = '> ' + text
|
text = text.replace(/\n/g,"\n> ").replace(/\*/g,"\\*")
|
||||||
textarea.value = textarea.value.replace(/\n/g,"\n> ").replace(/\*/g,"\\*")
|
text = text.replace(/\n> \n/g,"\n \n")
|
||||||
if (!textarea.value.endsWith('\n')) textarea.value += '\n'
|
if (!text.endsWith('\n')) text += '\n'
|
||||||
|
text = text.split('\n> Reply')[0]
|
||||||
|
textarea.value = text
|
||||||
}
|
}
|
||||||
textarea.focus()
|
textarea.focus()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue