jmadler / emoji-picker

Add a slick emoji selector to input fields and textareas on your website.
Other
1.31k stars 318 forks source link

how do i use this package in laravel #86

Open mahdiahmadi73 opened 6 years ago

mahdiahmadi73 commented 6 years ago

hi , i have downloaded lib folder and put folder img ,css ,js in public folder , then i follow your guide for installation and in one input i write : data-emojiable="true" but nothing appear and even icon emojy-picker not appear near the textbox. how can i using emoji picker in laravel project

catdkny commented 6 years ago

I found this code in demo index.html, may be it can help you.

$(function() { // Initializes and creates emoji set from sprite sheet window.emojiPicker = new EmojiPicker({ emojiable_selector: '[data-emojiable=true]', assetsPath: '../lib/img/', popupButtonClasses: 'fa fa-smile-o' }); // Finds all elements with emojiable_selector and converts them to rich emoji input fields // You may want to delay this step if you have dynamically created input fields that appear later in the loading process // It can be called as many times as necessary; previously converted input fields will not be converted again window.emojiPicker.discover(); });`