function footnotes_wysiwyg_wysiwyg_plugin

cis7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)
cle7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)
elmsmedia7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)
icor7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)
meedjum_blog7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)
mooc7 footnotes_wysiwyg.module footnotes_wysiwyg_wysiwyg_plugin($editor, $version)

Implementation of hook_wysiwyg_plugin().

File

sites/all/modules/ulmus/footnotes/footnotes_wysiwyg/footnotes_wysiwyg.module, line 13
WYSIWYG support for the footnotes module. Currently this supports TinyMCE and CKEditor via the WYSIWYG module and CKEditor via the CKEditor module.

Code

function footnotes_wysiwyg_wysiwyg_plugin($editor, $version) {
  $plugin = array(
    'footnotes' => array(
      'buttons' => array('footnotes' => t('Add Footnote')),
      'basePath' => base_path(),
      
      // This is required to auto-load the plugin.
      'load' => TRUE,
    ),
  );
  switch ($editor) {
    case 'tinymce':
      $plugin['footnotes']['filename'] = 'editor_plugin.js';
      $plugin['footnotes']['path'] = drupal_get_path('module', 'footnotes_wysiwyg') . '/tinymce_plugin/';
      $plugin['footnotes']['extended_valid_elements'] = array('fn');
      return $plugin;
    case 'ckeditor':
      // For CKEditor, path is the directory and the .js file must be called 'plugin.js'.
      $plugin['footnotes']['path'] = drupal_get_path('module', 'footnotes_wysiwyg') . '/ckeditor_plugin/';
      return $plugin;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.