WordPress at a glance

wp_enqueue_editor() WP 1.0

Outputs the editor scripts, stylesheets, and default settings.

The editor can be initialized when needed after page load. See wp.editor.initialize() in wp-admin/js/editor.js for initialization options.

No Hooks.

Return

Nothing (null).

Usage

wp_enqueue_editor();

Code of wp_enqueue_editor: wp-includes/general-template.php VER 5.0

<?php
function wp_enqueue_editor() {
	if ( ! class_exists( '_WP_Editors', false ) ) {
		require( ABSPATH . WPINC . '/class-wp-editor.php' );
	}

	_WP_Editors::enqueue_default_editor();
}

Related Functions

From tag: TinyMCE (editor)

More from category: Scripts and Styles

No comments
    Hello, !     Log In . Register