## Instructions :

This plugin require emojify.js
You can install emojify.js with Bower (run this command in the Trumbowyg root directory, to install emojify.js in bower_components) : `

    bower install emojify.js

`

## Select an emoji !

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident optio nam reiciendis eius beatae quibusdam!

## The code

`

    // This function initialize emojify.js
    function initEmoji() {
        emojify.setConfig({
            img_dir : '../../bower_components/emojify.js/dist/images/basic/',
        });
        emojify.run();
    }
    initEmoji();

    $('#editor')
    .trumbowyg({
        btns: [['emoji']]
    });

    // You can also add an emoticon directly on the editor
    $('.trumbowyg-editor').bind('input propertychange', function() {
        initEmoji();
    });

`