From 84aa89a861d6f50572e895e5b851350c13c65e90 Mon Sep 17 00:00:00 2001 From: Hakim Zulkufli Date: Sun, 30 Apr 2017 19:08:46 +0800 Subject: [PATCH] Quill plugin fix. Just making it work. It seems to be working fine on my end, but user-defined toolbar options are not implemented yet. The plugin now loads all toolbar options by default. See: var toolbarOptions --- bl-plugins/quill/plugin.php | 46 ++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/bl-plugins/quill/plugin.php b/bl-plugins/quill/plugin.php index 7a7076de..583b093b 100644 --- a/bl-plugins/quill/plugin.php +++ b/bl-plugins/quill/plugin.php @@ -56,7 +56,7 @@ class pluginQuill extends Plugin { $html .= 'getDbField('autosave')?'checked':'').'>'; $html .= ''; $html .= ''; - + $html .= '
'; $html .= ''; $html .= 'getDbField('spellChecker')?'checked':'').'>'; @@ -72,25 +72,43 @@ class pluginQuill extends Plugin { global $Language; $html = ''; - if( $this->enabled() ) { + // Load CSS and JS only on Controllers in array. + if(in_array($layout['controller'], $this->loadWhenController)) + { $html .= ' '; } return $html; } -} \ No newline at end of file +}