hook_editor_info_alter

hook_editor_info_alter(array &$editors)

Performs alterations on text editor definitions.

Parameters

array $editors: An array of metadata of text editors, as collected by the plugin annotation discovery mechanism.

See also

\Drupal\editor\Plugin\EditorBase

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/editor/editor.api.php, line 24
Documentation for Text Editor API.

Code

function hook_editor_info_alter(array &$editors) {
  $editors['some_other_editor']['label'] = t('A different name');
  $editors['some_other_editor']['library']['module'] = 'myeditoroverride';
}
doc_Drupal
2016-10-29 09:17:53
Comments
Leave a Comment

Please login to continue.