Commit 5a67d985 authored by JC Brand's avatar JC Brand

emoji: Render shortname in textarea, not unicode.

parent faa614ba
......@@ -763,13 +763,8 @@
insertEmoji (ev) {
ev.stopPropagation();
this.toggleEmojiMenu();
const target = ev.target.nodeName === 'IMG' ?
ev.target.parentElement : ev.target;
var shortname = target.getAttribute('data-emoji');
this.insertIntoTextArea(
emojione.shortnameToUnicode(shortname)
);
const target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
this.insertIntoTextArea(target.getAttribute('data-emoji'));
},
toggleEmojiMenu (ev) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment