diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 94f1d5d979..10123d1787 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -429,7 +429,7 @@ function populate_speed_emoji_modal(results, textbox) close_inline_speed_emoji_modal() textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `:${name}: `) textbox.focus() - if (typeof markdown === "function") { + if (typeof markdown === "function" && textbox.dataset.preview) { markdown(textbox) } });