add quoting posts

This commit is contained in:
2026-05-29 00:26:23 +03:00
parent 594272d298
commit 06b417f9a1
3 changed files with 11 additions and 3 deletions

View File

@@ -162,3 +162,11 @@ export function showBabycodePreview(payload, _, el) {
el.innerHTML = payload.html;
}
}
export function babycodeEditorQuote(ev, sender, el) {
console.log(sender.dataset.quote);
const newline = el.value.length === 0 ? '' : '\n'
el.value += `${newline}[quote=${sender.dataset.posterName}]\n${sender.dataset.quote}\n[/quote]\n\n`
b.send({ sender: el }, 'babycodeEditorCharCount');
el.focus();
}