forked from rDrama/rDrama
1
0
Fork 0

better quoting behavior

master
Aevann1 2022-11-09 19:28:47 +02:00
parent 0eefc9803c
commit 78712da50b
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ function ToggleReplyBox(id) {
let text = getSelection().toString().trim()
if (text)
{
text = text.split('> \n> Reply')[0]
textarea.value = '> ' + text
textarea.value = textarea.value.replace(/\n/g,"\n> ").replace(/\*/g,"\\*")
if (!textarea.value.endsWith('\n')) textarea.value += '\n'