Modifies JavaScript settings that are added for text editors.
array $settings: All the settings that will be added to the page via drupal_add_js() for the text formats to which a user has access.
array $formats: The list of format objects for which settings are being added.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_editor_js_settings_alter(array &$settings, array $formats) {
if (isset($formats['basic_html'])) {
$settings['basic_html']['editor'][] = 'MyDifferentEditor';
$settings['basic_html']['editorSettings']['buttons'] = array(
'strong',
'italic',
'underline',
);
}
}