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 +}