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
if ( !function_exists( 'load_tiny_mce_editor' ) ) { require_once ABSPATH . PLUGINDIR . 'nextgen-tinymce-picture-description/nextgen-tinymce.php'; } // NOTICE! Understand what this does before running. $result = load_tiny_mce_editor();
Defined (1)
The function is defined in the following location(s).
- /nextgen-tinymce.php
- function load_tiny_mce_editor() {
- wp_enqueue_script( 'common' );
- wp_enqueue_script( 'jquery-color' );
- wp_print_scripts('editor');
- if (function_exists('add_thickbox')) add_thickbox();
- wp_print_scripts('media-upload');
- if (function_exists('wp_tiny_mce')) wp_tiny_mce();
- wp_admin_css();
- wp_enqueue_script('utils');
- do_action("admin_print_styles-post-php");
- do_action('admin_print_styles');
- }