function hook_filter_js_settings_alter in Editor 7
Perform alterations on the JavaScript settings that are added for filters.
Note that changing settings here only affects the client side behavior of the filter. To affect the filter globally both on the client side and server side, use hook_filter_info_alter().
Parameters
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.
1 invocation of hook_filter_js_settings_alter()
- editor_get_js_settings in ./
editor.module - Retrieve JavaScript settings that should be added by each filter.
File
- ./
editor.api.php, line 75 - Documentation for Editor module APIs.
Code
function hook_filter_js_settings_alter(&$settings) {
$settings['full_html']['allowed_tags'][] = 'strong';
$settings['full_html']['allowed_tags'][] = 'em';
$settings['full_html']['allowed_tags'][] = 'img';
}