You are here

function tinymce_editor_info in TinyMCE 7

Implements hook_editor_info().

2 calls to tinymce_editor_info()
tinymce_form_wysiwyg_profile_form_alter in includes/tinymce.wysiwyg.inc
Implements hook_form_FORM_ID_alter().
tinymce_wysiwyg_settings in includes/tinymce_extended.inc
Return JavaScript settings that should be passed to the WYSIWYG editor.

File

./tinymce.module, line 15

Code

function tinymce_editor_info() {
  $editors['tinymce'] = array(
    'label' => t('TinyMCE'),
    'library' => array(
      'tinymce',
      'drupal.tinymce',
    ),
    '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' => 'tinymce_settings_form',
    'js settings callback' => 'tinymce_add_settings',
  );
  return $editors;
}