Definition:
function wp_editor( $content, $editor_id, $settings = array() {}
Renders an editor.
Using this function is the proper way to output all needed components for both TinyMCE and Quicktags. _WP_Editors should not be used directly. See http://core.trac.wordpress.org/ticket/17144.
Parameters
- string $content: Initial content for the editor.
- string $editor_id: HTML ID attribute value for the textarea and TinyMCE. Can only be /[a-z]+/.
- array $settings: See _WP_Editors::editor().
Source code
function wp_editor( $content, $editor_id, $settings = array() ) {
if ( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
_WP_Editors::editor($content, $editor_id, $settings);
}
17546

December 13, 2011 


No comments yet... Be the first to leave a reply!