gde_mce_addbuttons

Add TinyMCE button.

Description

gde_mce_addbuttons(); 

Usage

  1. if ( !function_exists( 'gde_mce_addbuttons' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_mce_addbuttons(); 
  7.  

Defined (1)

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

/functions-admin.php  
  1. function gde_mce_addbuttons() { 
  2. // don't bother doing this stuff if the current user lacks permissions 
  3. if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) 
  4. return; 
  5.  
  6. // add only in Rich Editor mode 
  7. if ( get_user_option('rich_editing') == 'true') { 
  8. add_filter("mce_external_plugins", "gde_add_tinymce_plugin");