Advertisements

wp_editor

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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: