Skip to content

boris-w/summernote-emoji

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summernote-emoji

Summernote emoji plugin

Screen Shot

Demo https://tamit.info/plugins/summernote-emoji/example

Installation & Usage:

In your <head> section, add the following stylesheet links. Adjust the lib/css path to match yours.

<link href="tam-emoji/css/emoji.css" rel="stylesheet">

The end of your <body> section, add the following JavaScript links. This library depends on jQuery, so jQuery must also be included, before these scripts are run. Once again, adjust the tam-emoji/js path to match yours.

  <script src="tam-emoji/js/config.js"></script>
  <script src="tam-emoji/js/tam-emoji.min.js"></script>

Before add emoji to summernote toolbar.

Example

<textarea id="summernote"></textarea>
$('#summernote').summernote({
  toolbar: [
		toolbar: [
            ['insert', ['emoji']],
            ['tool', ['undo', 'redo', 'codeview']]
        ]
	]
});

Configuring Options

# Emoji Button
document.emojiButton = 'fas fa-smile'; // default: fa fa-smile-o

#The Emoji selector to input Unicode characters instead of images
document.emojiType = 'unicode'; // default: image

#Relative path to emojis
document.emojiSource = 'tam-emoji/img';

About

Summernote emoji plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • CSS 3.4%
  • HTML 1.4%