1 ckeditor5.module ckeditor5_editor_info()

Implements hook_editor_info().

File

core/modules/ckeditor5/ckeditor5.module, line 38
Provides integration with the CKEditor WYSIWYG editor.

Code

function ckeditor5_editor_info() {
  $editors['ckeditor5'] = array(
    'label' => t('CKEditor 5'),
    'library' => array('ckeditor5', 'backdrop.ckeditor5'),
    'library_version' => CKEDITOR5_VERSION,
    'default settings' => array(
      'toolbar' => array(
        'bold', 'italic', 'blockQuote', 'heading', '|',
        'bulletedList', 'numberedList', '|',
        'alignment:left', 'alignment:center', 'alignment:right', '|',
        'backdropLink', 'backdropImage', '|',
        'sourceEditing', 'removeFormat',
      ),
      'heading_list' => array('p', 'h3', 'h4', 'h5'),
      'style_list' => array(),
    ),
    'file' => 'ckeditor5.admin.inc',
    'settings callback' => 'ckeditor5_settings_form',
    'js settings callback' => 'ckeditor5_get_config',
  );

  return $editors;
}