1 ckeditor5.module ckeditor5_library_info_alter(&$libraries, $module)

Implements hook_library_info_alter().

File

core/modules/ckeditor5/ckeditor5.module, line 175
Provides integration with the CKEditor WYSIWYG editor.

Code

function ckeditor5_library_info_alter(&$libraries, $module) {
  if ($module == 'system' && isset($libraries['ui.dialog'])) {
    // Override jquery.ui dialog _allowInteraction method to allow interaction
    // for editor form elements from within jquery dialogs.
    // @see https://bugs.jqueryui.com/ticket/9087/
    $path = backdrop_get_path('module', 'ckeditor5') . '/js/ckeditor5-dialog-fix.js';
    $libraries['ui.dialog']['js'][$path] = array();
  }
}