This is a simple javascript function that allows you to easily paste twemoji in textarea.
First add sourse files
<head>
<link rel="stylesheet" type="text/css" href="./twemoji.input.css">
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script>
<script src="./twemoji.input.js"></script>
</head>
then createtextarea
element
<textarea id="my-input"></textarea>
and init the code
var Twemoji = new TwemojiInput(document.getElementById('my-input'));
grab message from textarea
var value = document.getElementById('my-input').value;
or with <img>
tags
Twemoji.Editor.value()
You still need to parse emoji, which placed outside of textarea, manualy with
twemoji.parse('I \u2764\uFE0F emoji!');
No License. Just take and use.