

To get the value of the contenteditable div, call element.val() on the underlying hidden input field.Text entered into this contenteditable div is plain text selected emojis are actually tags.When you type text into this contenteditable div, events are triggered upon each keypress/text change as well as each emoji selection, and the contents of this contenteditable div are copied to the original (now hidden) input field.When you call new EmojiPicker().discover(), all elements with the data attribute data-emojiable="true" are found, a contenteditable div is created after each one, and the original input field is hidden.Text area values can be easily converted between Unicode and HTML (Unicode+Image Tags).An emoji selection menu, with recently selected emojis at the top (thanks to angular-emoji-popup's author).A happy face icon on the top right of each rich text area, which brings up the menu on click.Input fields converted to contenteditable rich text areas with emoji support.I want classes from my original input field to be copied over to the rich emoji input area Character input and emoji input each count as one character, so it'll stop you from entering more than the max length. I want to limit my input field to a certain number of characters (maxlength) Only the unicode value is checked for entering anything else has no effect. I want the Emoji selector to input Unicode characters instead of imagesĪdd data-emoji-input="unicode" to your input field. Play around with the demo to see what the default options give you. That's all you need for the default options. On any input field, add the data attribute data-emojiable="true".
