public function CKEditorPluginInterface::getConfig

Returns the additions to CKEDITOR.config for a specific CKEditor instance.

The editor's settings can be found in $editor->settings, but be aware that it may not yet contain plugin-specific settings, because the user may not yet have configured the form. If there are plugin-specific settings (verify with isset()), they can be found at $editor->settings['plugins'][$plugin_id].

Parameters

\Drupal\editor\Plugin\Core\Entity\Editor $editor: A configured text editor object.

Return value

array A keyed array, whose keys will end up as keys under CKEDITOR.config.

3 methods override CKEditorPluginInterface::getConfig()
Internal::getConfig in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/Internal.php
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getConfig().
Llama::getConfig in drupal/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons().
StylesCombo::getConfig in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getConfig().

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php, line 68
Contains \Drupal\ckeditor\CKEditorPluginInterface.

Class

CKEditorPluginInterface
Defines an interface for (loading of) CKEditor plugins.

Namespace

Drupal\ckeditor

Code

public function getConfig(Editor $editor);