function ckeditor_library_info

Implements hook_library_info().

File

drupal/core/modules/ckeditor/ckeditor.module, line 11
Provides integration with the CKEditor WYSIWYG editor.

Code

function ckeditor_library_info() {
  $module_path = drupal_get_path('module', 'ckeditor');
  $settings = array(
    'ckeditor' => array(
      'modulePath' => drupal_get_path('module', 'ckeditor'),
    ),
  );
  $libraries['drupal.ckeditor'] = array(
    'title' => 'Drupal behavior to enable CKEditor on textareas.',
    'version' => VERSION,
    'js' => array(
      $module_path . '/js/ckeditor.js' => array(),
      array(
        'data' => $settings,
        'type' => 'setting',
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'drupal',
      ),
      array(
        'ckeditor',
        'ckeditor',
      ),
      array(
        'editor',
        'drupal.editor',
      ),
    ),
  );
  $libraries['drupal.ckeditor.admin'] = array(
    'title' => 'Drupal behavior for drag-and-drop CKEditor toolbar builder UI.',
    'version' => VERSION,
    'js' => array(
      $module_path . '/js/ckeditor.admin.js' => array(),
    ),
    'css' => array(
      $module_path . '/css/ckeditor.admin.css' => array(),
      'core/misc/ckeditor/skins/moono/editor.css' => array(),
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
      array(
        'system',
        'drupal',
      ),
      array(
        'system',
        'drupalSettings',
      ),
      array(
        'system',
        'jquery.once',
      ),
      array(
        'system',
        'jquery.ui.sortable',
      ),
      array(
        'system',
        'jquery.ui.draggable',
      ),
      array(
        'system',
        'jquery.ui.touch-punch',
      ),
    ),
  );
  $libraries['drupal.ckeditor.stylescombo.admin'] = array(
    'title' => 'Only show the "stylescombo" plugin settings when its button is enabled.',
    'version' => VERSION,
    'js' => array(
      $module_path . '/js/ckeditor.stylescombo.admin.js' => array(),
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
      array(
        'system',
        'drupal',
      ),
      array(
        'system',
        'jquery.once',
      ),
      array(
        'system',
        'drupal.vertical-tabs',
      ),
    ),
  );
  $libraries['ckeditor'] = array(
    'title' => 'Loads the main CKEditor library.',
    'version' => '4.1',
    'js' => array(
      'core/misc/ckeditor/ckeditor.js' => array(
        'preprocess' => FALSE,
      ),
    ),
  );
  return $libraries;
}