mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Editor: Provide API for the editor to be dynamically instantiated via JS. First run.
See: #35760 git-svn-id: https://develop.svn.wordpress.org/trunk@40476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3056,6 +3056,23 @@ function wp_editor( $content, $editor_id, $settings = array() ) {
|
||||
_WP_Editors::editor($content, $editor_id, $settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @uses _WP_Editors
|
||||
* @since 4.8.0
|
||||
*/
|
||||
function wp_enqueue_editor() {
|
||||
if ( ! class_exists( '_WP_Editors', false ) ) {
|
||||
require( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
}
|
||||
|
||||
_WP_Editors::enqueue_default_editor();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the contents of the search WordPress query variable.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user