You are here

function elfinder_tinymce_elfinder_editor_plugin in elFinder file manager 8.2

Same name and namespace in other branches
  1. 6.2 editors/tinymce/tinymce.inc \elfinder_tinymce_elfinder_editor_plugin()
  2. 6 editors/tinymce/tinymce.inc \elfinder_tinymce_elfinder_editor_plugin()
  3. 7.3 editors/tinymce/tinymce.inc \elfinder_tinymce_elfinder_editor_plugin()
  4. 7 editors/tinymce/tinymce.inc \elfinder_tinymce_elfinder_editor_plugin()
  5. 7.2 editors/tinymce/tinymce.inc \elfinder_tinymce_elfinder_editor_plugin()

Pseudo-hook for elfinder hook_wysiwyg_plugin implementation

File

editors/tinymce/tinymce.inc, line 12
TinyMCE integration plugin

Code

function elfinder_tinymce_elfinder_editor_plugin($options) {
  drupal_add_js($options['plugin_url_base'] . '/tinymce.js');
  return array(
    'elfinder' => array(
      'extensions' => array(
        'elfinder' => t('elFinder'),
      ),
      'url' => $options['homepage_url'],
      'options' => array(
        'file_browser_callback' => 'elfinder_tinymce_browse_callback',
        'file_browser_url' => $options['elfinder_url'],
        // non standard TinyMCE configuration variable to pass source application to elFinder
        'inline_styles' => TRUE,
      ),
      'load' => FALSE,
    ),
  );
}