Implements \Drupal\ckeditor\Plugin\CKEditorPluginContextualInterface::isEnabled().
Overrides CKEditorPluginContextualInterface::isEnabled
function isEnabled(Editor $editor) {
// Automatically enable this plugin if the Underline button is enabled.
foreach ($editor->settings['toolbar']['buttons'] as $row) {
if (in_array('Strike', $row)) {
return TRUE;
}
}
return FALSE;
}