wp_enqueue_editor()

Outputs the editor scripts, stylesheets, and default settings.


Description

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


Top ↑

Source

File: wp-includes/general-template.php. View all references

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

	_WP_Editors::enqueue_default_editor();
}


Top ↑

Changelog

Changelog
Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes

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