You are here

function wysiwyg_wymeditor_editor in Wysiwyg 5.2

Same name and namespace in other branches
  1. 6.2 editors/wymeditor.inc \wysiwyg_wymeditor_editor()
  2. 7.2 editors/wymeditor.inc \wysiwyg_wymeditor_editor()

Plugin implementation of hook_editor().

File

editors/wymeditor.inc, line 11
Editor integration functions for WYMeditor.

Code

function wysiwyg_wymeditor_editor() {
  $editor['wymeditor'] = array(
    'title' => 'WYMeditor',
    'vendor url' => 'http://www.wymeditor.org/',
    'download url' => 'http://www.wymeditor.org/download/',
    'library path' => wysiwyg_get_path('wymeditor') . '/wymeditor',
    'libraries' => array(
      'min' => array(
        'title' => 'Minified',
        'files' => array(
          'jquery.wymeditor.min.js',
        ),
      ),
      'pack' => array(
        'title' => 'Packed',
        'files' => array(
          'jquery.wymeditor.pack.js',
        ),
      ),
      'src' => array(
        'title' => 'Source',
        'files' => array(
          'jquery.wymeditor.js',
        ),
      ),
    ),
    'version callback' => 'wysiwyg_wymeditor_version',
    'themes callback' => 'wysiwyg_wymeditor_themes',
    'settings callback' => 'wysiwyg_wymeditor_settings',
    'plugin callback' => 'wysiwyg_wymeditor_plugins',
    'versions' => array(
      '0.5-rc1' => array(
        'js files' => array(
          'wymeditor.js',
        ),
      ),
    ),
  );
  return $editor;
}