function ueditor_page_attachments in UEditor - 百度编辑器 8
Implements hook_page_attachments().
File
- ./
ueditor.module, line 14 - Provides integration with the UEditor WYSIWYG editor.
Code
function ueditor_page_attachments(array &$attachments) {
$config = \Drupal::config('ueditor.settings')
->get('ueditor_global_settings');
if ($config['ueditor_highlighting_format']) {
$attachments['#attached']['library'][] = 'ueditor/ueditor.highlighting';
}
}