1 ckeditor.module ckeditor_library_info()

Implements hook_library_info().

File

core/modules/ckeditor/ckeditor.module, line 77
Provides integration with the CKEditor 4 WYSIWYG editor.

Code

function ckeditor_library_info() {
  $module_path = backdrop_get_path('module', 'ckeditor');

  $libraries['backdrop.ckeditor.admin'] = array(
    'title' => 'Administrative library for configuring CKEditor 4.',
    'version' => BACKDROP_VERSION,
    'js' => array(
      $module_path . '/js/ckeditor.admin.js' => array(),
    ),
    'css' => array(
      $module_path . '/css/ckeditor.admin.css' => array(),
    ),
    'dependencies' => array(
      array('system', 'ui.sortable'),
      array('system', 'ui.draggable'),
    ),
  );
  $libraries['backdrop.ckeditor'] = array(
    'title' => 'Backdrop behavior to enable CKEditor 4 on textareas.',
    'version' => BACKDROP_VERSION,
    'js' => array(
      $module_path . '/js/ckeditor.js' => array(),
    ),
    'css' => array(
      $module_path . '/css/ckeditor.css' => array(),
    ),
    'dependencies' => array(
      array('filter', 'filter'),
      array('system', 'backdrop.ajax'),
      array('ckeditor', 'ckeditor'),
    ),
  );
  $libraries['ckeditor'] = array(
    'title' => 'Loads the main CKEditor 4 library.',
    'version' => CKEDITOR_VERSION,
    'js' => array(
      // CKEditor is both a large library and needs to be able to identify its
      // installation path, so we disable aggregation on it.
      'core/misc/ckeditor/ckeditor.js' => array('preprocess' => FALSE, 'group' => JS_LIBRARY),
    ),
  );

  return $libraries;
}