bp_docs_add_external_tinymce_plugins

Adds BuddyPress Docs-specific TinyMCE plugins.

Description

(array) bp_docs_add_external_tinymce_plugins( (array) $plugins ); 

Includes: - table - tabindent

Returns (array)

$plugins Plugin list, with BP Docs plugins added

Parameters (1)

0. $plugins (array)
TinyMCE external plugins registered in WP

Usage

  1. if ( !function_exists( 'bp_docs_add_external_tinymce_plugins' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-docs/includes/templatetags-edit.php'; 
  3.  
  4. // TinyMCE external plugins registered in WP 
  5. $plugins = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_docs_add_external_tinymce_plugins($plugins); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/templatetags-edit.php  
  1. function bp_docs_add_external_tinymce_plugins( $plugins ) { 
  2. $plugins['table'] = WP_PLUGIN_URL . '/'. BP_DOCS_PLUGIN_SLUG . '/lib/js/tinymce/plugins/table/editor_plugin.js'; 
  3. $plugins['tabindent'] = WP_PLUGIN_URL . '/'. BP_DOCS_PLUGIN_SLUG . '/lib/js/tinymce/plugins/tabindent/editor_plugin.js'; 
  4. $plugins['print'] = WP_PLUGIN_URL . '/'. BP_DOCS_PLUGIN_SLUG . '/lib/js/tinymce/plugins/print/editor_plugin.js'; 
  5.  
  6. return $plugins;