remove spaces from babycode html emoji, clean up js
This commit is contained in:
@@ -238,7 +238,7 @@ NAMED_COLORS = [
|
|||||||
|
|
||||||
|
|
||||||
def make_emoji(name, code):
|
def make_emoji(name, code):
|
||||||
return f' <img class=emoji src="/static/emoji/{name}.png" alt="{name}" title=":{code}:">'
|
return f'<img class=emoji src="/static/emoji/{name}.png" alt="{name}" title=":{code}:">'
|
||||||
|
|
||||||
|
|
||||||
EMOJI = {
|
EMOJI = {
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
if (inThread()) {
|
if (inThread()) {
|
||||||
const form = ta.closest('.post-edit-form');
|
const form = ta.closest('.post-edit-form');
|
||||||
console.log(ta.closest('.post-edit-form'));
|
|
||||||
if (form){
|
if (form){
|
||||||
form.addEventListener("submit", () => {
|
form.addEventListener("submit", () => {
|
||||||
localStorage.removeItem(window.location.pathname);
|
localStorage.removeItem(window.location.pathname);
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
if (ta.value.trim() !== "") {
|
if (ta.value.trim() !== "") {
|
||||||
ta.value += "\n"
|
ta.value += "\n"
|
||||||
}
|
}
|
||||||
ta.value += `@${authorUsername} [url=${postPermalink}]said:[/url]\n[quote]< :scissors: > ${document.getSelection().toString()} < :scissors: >[/quote]\n`;
|
ta.value += `@${authorUsername} [url=${postPermalink}]said:[/url]\n[quote]<:scissors:> ${document.getSelection().toString()} <:scissors:>[/quote]\n`;
|
||||||
ta.scrollIntoView()
|
ta.scrollIntoView()
|
||||||
ta.focus();
|
ta.focus();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user