diff --git a/app/templates/common/macros.html b/app/templates/common/macros.html
index 17e15b9..84af04d 100644
--- a/app/templates/common/macros.html
+++ b/app/templates/common/macros.html
@@ -112,7 +112,7 @@
stub: char count
-
+
{%- if banned_tags -%}
Forbidden tags:
@@ -186,7 +186,7 @@
Edit
{%- endif -%}
{%- if can_reply -%}
-
+
{%- endif -%}
{%- if can_delete -%}
Delete
diff --git a/app/templates/threads/thread.html b/app/templates/threads/thread.html
index 794d33b..d094694 100644
--- a/app/templates/threads/thread.html
+++ b/app/templates/threads/thread.html
@@ -29,7 +29,7 @@
-
+
{%- endif -%}
diff --git a/data/static/js/bits/ui.js b/data/static/js/bits/ui.js
index 0e1637e..ca27762 100644
--- a/data/static/js/bits/ui.js
+++ b/data/static/js/bits/ui.js
@@ -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();
+}