You are here

function wysiwyg_yui_editor in Wysiwyg 6.2

Same name and namespace in other branches
  1. 5.2 editors/yui.inc \wysiwyg_yui_editor()
  2. 5 editors/yui.inc \wysiwyg_yui_editor()
  3. 6 editors/yui.inc \wysiwyg_yui_editor()
  4. 7.2 editors/yui.inc \wysiwyg_yui_editor()

Plugin implementation of hook_editor().

File

editors/yui.inc, line 11
Editor integration functions for YUI editor.

Code

function wysiwyg_yui_editor() {
  $editor['yui'] = array(
    'title' => 'YUI editor',
    'vendor url' => 'http://developer.yahoo.com/yui/editor/',
    'download url' => 'http://developer.yahoo.com/yui/download/',
    'library path' => wysiwyg_get_path('yui') . '/build',
    'libraries' => array(
      'min' => array(
        'title' => 'Minified',
        'files' => array(
          'yahoo-dom-event/yahoo-dom-event.js',
          'animation/animation-min.js',
          'element/element-min.js',
          'container/container-min.js',
          'menu/menu-min.js',
          'button/button-min.js',
          'editor/editor-min.js',
        ),
      ),
      'src' => array(
        'title' => 'Source',
        'files' => array(
          'yahoo-dom-event/yahoo-dom-event.js',
          'animation/animation.js',
          'element/element.js',
          'container/container.js',
          'menu/menu.js',
          'button/button.js',
          'editor/editor.js',
        ),
      ),
    ),
    'install note callback' => 'wysiwyg_yui_install_note',
    'deprecation message' => t('YUI is no longer available and support will be dropped in the next release. Editor profiles using YUI will be removed. See this <a href="!url" target="_blank">announcement</a>', array(
      '!url' => 'http://yahooeng.tumblr.com/post/96098168666/important-announcement-regarding-yui/',
    )),
    'verified version range' => array(
      '2.7.0',
      '2.9.0',
    ),
    'version callback' => 'wysiwyg_yui_version',
    'themes callback' => 'wysiwyg_yui_themes',
    'settings form callback' => 'wysiwyg_yui_settings_form',
    'load callback' => 'wysiwyg_yui_load',
    'settings callback' => 'wysiwyg_yui_settings',
    'plugin callback' => '_wysiwyg_yui_plugins',
    'plugin meta callback' => '_wysiwyg_yui_plugin_meta',
    'proxy plugin' => array(
      'drupal' => array(
        'load' => TRUE,
        'proxy' => TRUE,
      ),
    ),
    'proxy plugin settings callback' => '_wysiwyg_yui_proxy_plugin_settings',
    'versions' => array(
      '2.7.0' => array(
        'js files' => array(
          'yui.js',
        ),
      ),
    ),
  );
  return $editor;
}