public function ColorDialog::isEnabled in CKEditor Color Dialog 8
Checks if this plugin should be enabled based on the editor configuration.
The editor's settings can be retrieved via $editor->getSettings().
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
bool
Overrides CKEditorPluginContextualInterface::isEnabled
File
- src/
Plugin/ CKEditorPlugin/ ColorDialog.php, line 35
Class
- ColorDialog
- Defines the "colordialog" plugin.
Namespace
Drupal\colordialog\Plugin\CKEditorPluginCode
public function isEnabled(Editor $editor) {
return TRUE;
}