You are here

bueditor.inc in elFinder file manager 6

BUEditor integration plugin

File

editors/bueditor/bueditor.inc
View source
<?php

// $Id$

/**
 * @file
 * BUEditor integration plugin
 */

/**
 * Pseudo-hook for elfinder hook_wysiwyg_plugin implementation
 */
function elfinder_bueditor_elfinder_editor_plugin($options) {
  drupal_add_js(array(
    'elfinder' => array(
      'moduleUrl' => url('elfinder'),
    ),
  ), 'setting');
  drupal_add_js(array(
    'elfinder' => array(
      'moduleUrl' => url('elfinder'),
    ),
  ), 'setting');
  drupal_add_js($options['plugin_url_base'] . '/bueditor.js');
  return array(
    'elfinder' => array(
      'extensions' => array(
        'elfinder' => t('elFinder'),
      ),
      'url' => $options['homepage_url'],
      'options' => array(),
      'load' => FALSE,
    ),
  );
}

Functions

Namesort descending Description
elfinder_bueditor_elfinder_editor_plugin Pseudo-hook for elfinder hook_wysiwyg_plugin implementation