function fontawesome_editor_js_settings_alter in Font Awesome Icons 8
Same name and namespace in other branches
- 8.2 fontawesome.module \fontawesome_editor_js_settings_alter()
Implements hook_editor_js_settings_alter().
File
- ./
fontawesome.module, line 194 - Drupal integration with Font Awesome, the iconic font for use with Bootstrap.
Code
function fontawesome_editor_js_settings_alter(array &$settings) {
// Attach the list of allowed empty tags.
$settings['editor']['fontawesome']['allowedEmptyTags'] = [
'i',
'span',
];
}