bbp_get_tiny_mce_plugins

Edit TinyMCE plugins to match core behaviour.

Description

(array) bbp_get_tiny_mce_plugins( (array) $plugins = array() ); 

Returns (array)

Parameters (1)

0. $plugins — Optional. (array) => array()
The plugins.

Usage

  1. if ( !function_exists( 'bbp_get_tiny_mce_plugins' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/template.php'; 
  3.  
  4. // The plugins. 
  5. $plugins = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_tiny_mce_plugins($plugins); 
  9.  

Defined (1)

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

/includes/common/template.php  
  1. function bbp_get_tiny_mce_plugins( $plugins = array() ) { 
  2.  
  3. // Unset fullscreen 
  4. foreach ( $plugins as $key => $value ) { 
  5. if ( 'fullscreen' === $value ) { 
  6. unset( $plugins[$key] ); 
  7. break; 
  8.  
  9. // Add the tabfocus plugin 
  10. $plugins[] = 'tabfocus'; 
  11.  
  12. return apply_filters( 'bbp_get_tiny_mce_plugins', $plugins );