You are here

function ckeditor_editor_info in CKEditor for WYSIWYG Module 7

Implements hook_editor_info().

2 calls to ckeditor_editor_info()
ckeditor_form_wysiwyg_profile_form_alter in includes/ckeditor.wysiwyg.inc
Implements hook_form_FORM_ID_alter().
ckeditor_wysiwyg_settings in includes/ckeditor_extended.inc
Return JavaScript settings that should be passed to the WYSIWYG editor.

File

./ckeditor.module, line 15

Code

function ckeditor_editor_info() {
  $editors['ckeditor'] = array(
    'label' => t('CKEditor'),
    'library' => array(
      'ckeditor',
      'drupal.ckeditor',
    ),
    'default settings' => array(
      'toolbar' => array(
        array(
          'Source',
          '|',
          'Bold',
          'Italic',
          '|',
          'NumberedList',
          'BulletedList',
          'Blockquote',
          '|',
          'JustifyLeft',
          'JustifyCenter',
          'JustifyRight',
          '|',
          'Link',
          'Unlink',
          '|',
          'Image',
          'Maximize',
        ),
      ),
      'format_list' => array(
        'p',
        'h1',
        'h2',
        'h3',
        'h4',
        'h5',
        'h6',
      ),
      'style_list' => array(),
    ),
    'settings callback' => 'ckeditor_settings_form',
    'js settings callback' => 'ckeditor_add_settings',
  );
  return $editors;
}