Skip to content
Snippets Groups Projects
Commit c5c0e595 authored by Kevin Quillen's avatar Kevin Quillen
Browse files

Bugfix: check that the plugin exists within settings before returning its value

parent 0f705bb5
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ class Autogrow extends CKEditorPluginBase implements CKEditorPluginConfigurableI
* {@inheritdoc}
*/
public function isEnabled(Editor $editor) {
return $editor->getSettings()['plugins']['autogrow']['enable'];
$settings = $editor->getSettings();
return isset($settings['plugins']['autogrow']) ? $settings['plugins']['autogrow']['enable'] : FALSE;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment