A simple emoji dropdown plugin for summernote editor
It inserts raw emojis, no images or icons.
include lib/summernoteEmoji.js and add sEmoji to summernote toolbar:
$('.summernote').summernote({ toolbar:[ ['insert', ['sEmoji']] ] });
$.extend($.summernote.options, {
sEmoji: {
icon: 'π',
tooltip: 'Insert Emoji',
list: ['π', 'π', 'π', 'π', 'π', 'π', 'π', 'π', 'π‘', 'π', 'π²', 'π±', 'π΄', 'π ', 'π']
}
});- icon the default icon for the button
- tooltip text for the tooltip
- list A js array of emojis. The plugin will accept any string
Released under the MIT license