EmojiPanel
EmojiPanel copied to clipboard
Write emojis to an input
We already store the offset of where to place the emoji in the input here: create.js#L9
But the write function is from the old extension: emojis.js#L87
What about this: https://jsfiddle.net/gHN8G/ which uses an insertAtCaret()
function. Obviously this currently requires jQuery, but surely could be converted to use vanilla JS?
Or this version: https://github.com/Toutouwai/InputfieldTextareaHannaTags/blob/a611aea312acac786b6e50de90ae207591a04fda/InputfieldTextareaHannaTags.js#L15-L56