You are here

function ueditor_ueditor_editor in UEditor - 百度编辑器 7

Same name and namespace in other branches
  1. 7.3 editors/ueditor.inc \ueditor_ueditor_editor()
  2. 7.2 editors/ueditor.inc \ueditor_ueditor_editor()

Plugin implementation of hook_editor().

File

editors/ueditor.inc, line 11
Editor integration functions for ueditor.

Code

function ueditor_ueditor_editor() {
  $editor['ueditor'] = array(
    'title' => 'Ueditor',
    'vendor url' => 'http://ueditor.baidu.com/website/index.html',
    'download url' => 'http://ueditor.baidu.com/website/download.html',
    'libraries' => array(
      '' => array(
        'title' => 'Source',
        'files' => array(
          'ueditor.all.js',
        ),
      ),
    ),
    'version callback' => 'ueditor_version',
    'settings callback' => 'ueditor_settings',
    'settings form callback' => 'ueditor_settings_form',
    'versions' => array(
      '1.4.3' => array(
        'js files' => array(
          'ueditor.js',
        ),
      ),
    ),
  );
  return $editor;
}