It looks like you’re browsing an old version of Froala. Please go to the newer version of our docs for a more updated version.
Popups
Custom Emoticons
Using the emoticons.min.js
plugin you can insert emoticons in the WYSIWYG HTML editor.
Try it yourself:
There are 2 options that can be used to customize the insert emoticon popup:
- emoticonsStep - The number of emoticons displayed on a line in the insert emoticon popup.
- emoticonsSet - An array of emoticons available in the insert emoticon popup.
HTML
<div id="froala-editor"></div>
JAVASCRIPT
<script> $(function() { $('div#froala-editor').froalaEditor({ toolbarButtons: ['bold', 'italic', 'underline', 'strikeThrough', 'emoticons', '|', 'paragraphFormat', 'align', 'undo', 'redo', 'html'], emoticonsStep: 4, emoticonsSet: [ { code: '1f600', desc: 'Grinning face' }, { code: '1f601', desc: 'Grinning face with smiling eyes' }, { code: '1f602', desc: 'Face with tears of joy' }, { code: '1f603', desc: 'Smiling face with open mouth' }, { code: '1f604', desc: 'Smiling face with open mouth and smiling eyes' }, { code: '1f605', desc: 'Smiling face with open mouth and cold sweat' }, { code: '1f606', desc: 'Smiling face with open mouth and tightly-closed eyes' }, { code: '1f607', desc: 'Smiling face with halo' } ] }) }); </script>