From 944b57fa90e94bc2584defea0285d672e9873750 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 15 Aug 2017 19:22:10 +0100 Subject: [PATCH] Updated README --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 302310d..c6d1536 100644 --- a/README.md +++ b/README.md @@ -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