You are here

function tinymce_tinymce_extended_editor in TinyMCE 7

Plugin implementation of hook_editor().

File

includes/tinymce_extended.inc, line 11
Editor integration functions for TinyMCE.

Code

function tinymce_tinymce_extended_editor() {
  $editor['tinymce_extended'] = array(
    'title' => 'TinyMCE (extended integration)',
    'vendor url' => 'http://tinymce.com',
    'download url' => 'http://tinymce.com/download',
    'libraries' => array(
      '' => array(
        'title' => 'Default',
        'files' => array(
          'tinymce.js' => array(
            'preprocess' => FALSE,
          ),
        ),
      ),
    ),
    'editor path' => drupal_get_path('module', 'tinymce') . '/lib/tinymce',
    'library path' => drupal_get_path('module', 'tinymce') . '/lib/tinymce',
    'js path' => drupal_get_path('module', 'tinymce') . '/js',
    'css path' => drupal_get_path('module', 'tinymce') . '/css',
    'version callback' => 'tinymce_wysiwyg_version',
    'settings callback' => 'tinymce_wysiwyg_settings',
    'plugin callback' => 'tinymce_wysiwyg_plugins',
    'plugin settings callback' => 'tinymce_wysiwyg_plugin_settings',
    'proxy plugin' => array(
      'drupal' => array(
        'load' => TRUE,
        'proxy' => TRUE,
      ),
    ),
    'proxy plugin settings callback' => 'tinymce_wysiwyg_proxy_plugin_settings',
    'versions' => array(
      '4.0' => array(
        'js files' => array(
          'tinymce_extended.js',
        ),
      ),
    ),
  );
  return $editor;
}