add quoting posts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user