You are here

function wysiwyg_markitup_editor in Wysiwyg 6

Same name and namespace in other branches
  1. 5.2 editors/markitup.inc \wysiwyg_markitup_editor()
  2. 5 editors/markitup.inc \wysiwyg_markitup_editor()
  3. 6.2 editors/markitup.inc \wysiwyg_markitup_editor()
  4. 7.2 editors/markitup.inc \wysiwyg_markitup_editor()

Plugin implementation of hook_editor().

File

editors/markitup.inc, line 12
Editor integration functions for markItUp.

Code

function wysiwyg_markitup_editor() {
  $editor = array();
  $editor['markitup'] = array(
    'title' => 'markItUp',
    'vendor url' => 'http://markitup.jaysalvat.com',
    'download url' => 'http://markitup.jaysalvat.com/downloads',
    'library path' => wysiwyg_get_path('markitup/markitup'),
    'libraries' => array(
      '' => array(
        'title' => 'Source',
        'files' => array(
          'jquery.markitup.js',
        ),
      ),
      'pack' => array(
        'title' => 'Packed',
        'files' => array(
          'jquery.markitup.pack.js',
        ),
      ),
    ),
    'version callback' => 'wysiwyg_markitup_version',
    'settings callback' => 'wysiwyg_markitup_settings',
    'themes callback' => 'wysiwyg_markitup_themes',
    'plugin callback' => 'wysiwyg_markitup_plugins',
    'versions' => array(
      '1.1.5' => array(
        'js files' => array(
          'markitup.js',
        ),
      ),
    ),
    'css files' => array(
      'markitup-1.css',
    ),
  );
  return $editor;
}