This time I will share jQuery Plugin and tutorial about WYSIWYG Emoji Converter / Picker Plugin For jQuery – EmojiOne Area, hope it will help you in programming stack.
EmojiOne Area is a jQuery plugin for converting any html element into a simple WYSIWYG editor that supports emojis based on Emojione icons.
Features:
- Auto converts characters into emoji icons.
- Appends an emoji picker to the the editor.
- Custom template.
Basic usage:
1. Include jQuery library and Emojione’s files on the web page.
1 |
< link href = "/path/to/emojione.sprites.css" rel = "stylesheet" > |
2 |
< link href = "/path/to/emojione.min.css" rel = "stylesheet" > |
4 |
< script src = "//code.jquery.com/jquery-1.11.3.min.js" ></ script > |
5 |
< script src = "/path/to/emojione.min.js" ></ script > |
2. Include the jQuery EmojiOne Area plugin at the bottom of the web page.
1 |
< link href = "css/emojionearea.css" rel = "stylesheet" > |
3 |
< script src = "js/emojionearea.js" ></ script > |
3. Initialize the plugin on the target html element to generate a simple WYSIWYG editor with an emoji picker.
1 |
$( "#container" ).emojioneArea({ |
4. Default plugin options.
06 |
autocapitalize : "off" , |
09 |
emojiPlaceholder : ":smiley:" , |
14 |
pickerPosition : "top" , |
15 |
filtersPosition : "top" , |
16 |
hidePickerOnBlur : true , |
17 |
buttonTitle : "Use the TAB key to insert emoji faster" , |
19 |
tonesStyle : "bullet" , |
21 |
saveEmojisAs : "unicode" , |
24 |
autocompleteTones : false , |
26 |
useInternalCDN : true , |
5. Events.
8 |
.off(events[, handler]); |
6. Public methods.
13 |
var el = $( "selector" ).emojioneArea(); |
14 |
el[0].emojioneArea.on( "emojibtn.click" , function (btn) { |
15 |
console.log(btn.html()); |
Change logs:
2018-04-07
- Removed repeated emojis from defaultOptions.of version 3 of emojione. It was rearranged some emoji to make more sense, from wrong categories, etc.
2018-02-10
- v3.4.1: visible emojis out of sync once search term is cleared
2018-01-18
2017-11-11
2017-11-10
- v3.2.5: replace h1 category titles with divs
2017-11-07
- Fix issue where emojis aren’t displayed after changing tone and removing search term.
2017-11-02
- Keep search consistent between tones
2017-10-30
- Fix
TypeError: emojione is undefined
2017-09-27
2017-09-11
- Adding support to emojione 3. Adding new emojis of version 3 to picker.
2017-07-24
- Add enable and disable functions to emojioneArea prototype.
2016-09-18
2016-09-08
- Fix select filter for skinnable tabs
2016-09-06
2016-09-04
- Fix emojibtn.click for recent, optimization, fix standalone stylesheets
2016-08-03
- Prevent textcomplete from triggering when writing normal colons
2016-07-26
- Added an Option for disabling recent emojis
2016-06-05
- Fixed: user events attached after plugin
2016-06-01
- add placeholder functionality, some documentation and style
2016-05-18
- Added ability to use trigger method without extra params
2016-05-09
- Fixed the dynamic position picker
2016-05-06
- Fixed picker position options
2016-04-30
- Fixed: submitting while clicking on skin buttons
2016-04-28
2016-03-24
- Ability to set events in options
2016-03-19
2016-03-14
- Removed uppercase method to make css classes for sprites work and minified the file
2015-10-14
- Optimization, fixed some errors
2015-10-06
- Optimization, adaptation to work with bootstrap framework
This awesome jQuery plugin is developed by mervick. For more Advanced Usages, please check the demo page or visit the official website.