From ce5ed4f45cdae4dba61eb8ed9d7063544d6b8906 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 17 Apr 2017 14:01:48 +0200 Subject: [PATCH] Add emoticon button to tinymce toolbar when the plugins is enabled --- skins/elastic/ui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 2e752ad08..66f1bdc59 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -408,7 +408,7 @@ function rcube_elastic_ui() // FIXME: only for mobile? if (mode == 'phone') { // Enable autoresize plugin - // TODO: autoresize for plain text editor area + // TODO: autoresize for plain text editor area? o.config.plugins += ' autoresize'; // Make the toolbar icons bigger @@ -416,6 +416,10 @@ function rcube_elastic_ui() // Use minimalistic toolbar o.config.toolbar = 'undo redo | insert | styleselect'; + + if (o.config.plugins.match(/emoticons/)) { + o.config.toolbar += ' emoticons'; + } } };