Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Johnson authored and Josh Johnson committed Aug 15, 2017
1 parent 79c441c commit 944b57f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@ npm install --save tinymce-emoji
```

Add to your tinymce init:
```
```JavaScript
import 'tinymce-emoji'

tinymce.init({
...
external_plugins: {
'emoji': require('tinymce-emoji')
}
plugins: [
'tinymceEmoji'
],
toolbar: 'tinymceEmoji'
})
```

You can also configure a few options for tinymce-emoji by adding them to your tinymce init, like so:
```
```JavaScript
tinymce.init({
...
external_plugins: {
'emoji': require('tinymce-emoji')
},
plugins: [
'tinymceEmoji'
],
toolbar: 'tinymceEmoji',
emoji_add_space: false, // emoji are quite wide, so a space is added automatically after each by default; this disables that extra space
emoji_show_groups: false, // hides the tabs and dsiplays all emojis on one page
emoji_show_subgroups: false, // hides the subheadings
Expand Down

0 comments on commit 944b57f

Please sign in to comment.