load_tiny_mce_editor

Load tinymce javascript files.

Description

load_tiny_mce_editor(); 

thanks to http://stackoverflow.com/users/148174/marty http://stackoverflow.com/questions/2855890/add-tinymce-to-wordpress-plugin


Usage

  1. if ( !function_exists( 'load_tiny_mce_editor' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-tinymce-picture-description/nextgen-tinymce.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = load_tiny_mce_editor(); 
  7.  

Defined (1)

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

/nextgen-tinymce.php  
  1. function load_tiny_mce_editor() { 
  2. wp_enqueue_script( 'common' ); 
  3. wp_enqueue_script( 'jquery-color' ); 
  4. wp_print_scripts('editor'); 
  5. if (function_exists('add_thickbox')) add_thickbox(); 
  6. wp_print_scripts('media-upload'); 
  7. if (function_exists('wp_tiny_mce')) wp_tiny_mce(); 
  8. wp_admin_css(); 
  9. wp_enqueue_script('utils'); 
  10. do_action("admin_print_styles-post-php"); 
  11. do_action('admin_print_styles');