1.20.x ckeditor.module ckeditor_library_info()

Implements hook_library_info().

File

modules/ckeditor/ckeditor.module, line 77
Provides integration with the CKEditor 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.',
    '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 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 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;
}