joypixels / emojione

[Archived] The world's largest independent emoji font. Maintained at https://github.com/joypixels/emoji-toolkit.
https://www.joypixels.com
Other
4.46k stars 536 forks source link

How insert the emojione into a div without the text-area #626

Closed winadv closed 5 years ago

winadv commented 5 years ago

Hello, I have the small problem. I would like to insert the emojione into a div without the text-area and that this button when clicked inserted the emoji into a particular div.   Ex.:
<###div class='text'> :+1: :100: </div###> <###div class='button'>Insert Emojis </div###>

Is there a possibility with this script? Thank you very much in advance.   =)

mervick commented 5 years ago

You can do that using emojionearea. Live example https://jsfiddle.net/mervick/1v03Lqnu/3704/