Skip to content

This simple javascript function that allows you to easily paste twemoji in textarea.

Notifications You must be signed in to change notification settings

levchenkod/twemoji-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pen twemoji-input

What is itQuestion Sign

This is a simple javascript function that allows you to easily paste twemoji in textarea.

Demo

How to use itQuestion Sign

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 createtextareaelement

<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()

One more thingPoiter Up

You still need to parse emoji, which placed outside of textarea, manualy with

twemoji.parse('I \u2764\uFE0F emoji!');

More details on twemoji's git

License

No License. Just take and use.

And tweet if you tweet Victory

About

This simple javascript function that allows you to easily paste twemoji in textarea.

Resources

Stars

Watchers

Forks

Packages

No packages published