You are here

function wysiwyg_yui_editor in Wysiwyg 5

Same name and namespace in other branches
  1. 5.2 editors/yui.inc \wysiwyg_yui_editor()
  2. 6.2 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 7

Code

function wysiwyg_yui_editor() {
  $editor = array();
  $editor['yui'] = array(
    'title' => 'YUI',
    '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',
        ),
      ),
    ),
    'version callback' => 'wysiwyg_yui_version',
    'load callback' => 'wysiwyg_yui_load',
    'settings callback' => 'wysiwyg_yui_settings',
    'themes callback' => 'wysiwyg_yui_themes',
    'plugin callback' => 'wysiwyg_yui_plugins',
    'versions' => array(
      '2.6.0' => array(
        'js files' => array(
          'yui.js',
        ),
      ),
    ),
  );
  return $editor;
}