1 ckeditor.module ckeditor_editor_info()

Implements hook_editor_info().

File

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

Code

function ckeditor_editor_info() {
  $editors['ckeditor'] = array(
    'label' => t('CKEditor 4'),
    'library' => array('ckeditor', 'backdrop.ckeditor'),
    'default settings' => array(
      'toolbar' => array(
        array(
          array(
            'name' => 'Formatting',
            'items' => array('Bold', 'Italic', 'Blockquote', 'Format'),
          ),
          array(
            'name' => 'Lists',
            'items' => array('BulletedList', 'NumberedList'),
          ),
          array(
            'name' => 'Alignment',
            'items' => array('JustifyLeft', 'JustifyCenter', 'JustifyRight'),
          ),
          array(
            'name' => 'Linking',
            'items' => array('BackdropLink', 'BackdropUnlink'),
          ),
          array(
            'name' => 'Media',
            'items' => array('BackdropImage'),
          ),
          array(
            'name' => 'Tools',
            'items' => array('Source', 'Maximize'),
          ),
        ),
      ),
      'format_list' => array('p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'),
      'style_list' => array(),
    ),
    'file' => 'ckeditor.admin.inc',
    'settings callback' => 'ckeditor_settings_form',
    'js settings callback' => 'ckeditor_get_settings',
  );

  return $editors;
}