bp_docs_add_external_tinymce_buttons_row3

Adds BuddyPress Docs-specific TinyMCE plugin buttons to row 3 of the editor.

Description

(array) bp_docs_add_external_tinymce_buttons_row3( (array) $buttons ); 

Includes: - tablecontrols

Returns (array)

$buttons Button list, with BP Docs buttons added

Parameters (1)

0. $buttons (array)
TinyMCE buttons

Usage

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

Defined (1)

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

/includes/templatetags-edit.php  
  1. function bp_docs_add_external_tinymce_buttons_row1( $buttons ) { 
  2. // TinyMCE 4.0+ 
  3. $justify_right_key = array_search( 'alignright', $buttons ); 
  4.  
  5. // 3.0