You are here

function wysiwyg_jwysiwyg_editor in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 editors/jwysiwyg.inc \wysiwyg_jwysiwyg_editor()
  2. 5 editors/jwysiwyg.inc \wysiwyg_jwysiwyg_editor()
  3. 6.2 editors/jwysiwyg.inc \wysiwyg_jwysiwyg_editor()
  4. 6 editors/jwysiwyg.inc \wysiwyg_jwysiwyg_editor()

Plugin implementation of hook_editor().

File

editors/jwysiwyg.inc, line 11
Editor integration functions for jWYSIWYG.

Code

function wysiwyg_jwysiwyg_editor() {
  $editor['jwysiwyg'] = array(
    'title' => 'jWYSIWYG',
    'vendor url' => 'https://github.com/jwysiwyg/jwysiwyg',
    'download url' => 'https://github.com/jwysiwyg/jwysiwyg/releases',
    'libraries' => array(
      '' => array(
        'title' => 'Source',
        'files' => array(
          'jquery.wysiwyg.js',
        ),
      ),
    ),
    'verified version range' => array(
      '0.5',
      '0.97',
    ),
    'version callback' => 'wysiwyg_jwysiwyg_version',
    'settings form callback' => 'wysiwyg_jwysiwyg_settings_form',
    'settings callback' => 'wysiwyg_jwysiwyg_settings',
    // @todo Wrong property; add separate properties for editor requisites.
    'css path' => wysiwyg_get_path('jwysiwyg'),
    'versions' => array(
      '0.5' => array(
        'js files' => array(
          'jwysiwyg.js',
        ),
        'css files' => array(
          'jquery.wysiwyg.css',
        ),
      ),
    ),
  );
  return $editor;
}