On this page
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.
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();
}
Related
Uses
| Uses | Description |
|---|---|
| _WP_Editors::enqueue_default_editor() wp-includes/class-wp-editor.php | Enqueue all editor scripts. |
Used By
| Used By | Description |
|---|---|
| WP_Widget_Text::enqueue_admin_scripts() wp-includes/widgets/class-wp-widget-text.php | Loads the required scripts and styles for the widget control. |
Changelog
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_enqueue_editor