apply_filters( 'the_editor', string $output )

Filters the HTML markup output that displays the editor.


Parameters

$output string
Editor's HTML markup.

Top ↑

Source

File: wp-includes/class-wp-editor.php. View all references

$the_editor = apply_filters(
	'the_editor',
	'<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' .
	$quicktags_toolbar .
	'<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' .
	'id="' . $editor_id_attr . '">%s</textarea></div>'
);


Top ↑

Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by tarhe

    More information
    The “the_editor()” allows you to call the TinyMCE editor in your plugin or theme/page.

    Basic Usage

    the_editor( $content, $id, $prev_id, $media_buttons, $tab_index );

    Filtered Content

    $the_editor = apply_filters(
    	'the_editor',
    	'<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' .
    	$quicktags_toolbar .
    	'<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' .
    	'id="' . $editor_id_attr . '">%s</textarea></div>'
    );

You must log in before being able to contribute a note or feedback.