sdffsd
This commit is contained in:
parent
648b21a73c
commit
05e0874d1a
2 changed files with 4 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue