WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/19/2017 02:37:29 AM (3 years ago)
Author:
azaozz
Message:

Editor: Provide API for the editor to be dynamically instantiated via JS. First run.

See: #35760

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r40254 r40476  
    30583058
    30593059/**
     3060 * Outputs the editor scripts, stylesheets, and default settings.
     3061 *
     3062 * The editor can be initialized when needed after page load.
     3063 * See wp.editor.initialize() in wp-admin/js/editor.js for initialization options.
     3064 *
     3065 * @uses _WP_Editors
     3066 * @since 4.8.0
     3067 */
     3068function wp_enqueue_editor() {
     3069    if ( ! class_exists( '_WP_Editors', false ) ) {
     3070        require( ABSPATH . WPINC . '/class-wp-editor.php' );
     3071    }
     3072
     3073    _WP_Editors::enqueue_default_editor();
     3074}
     3075
     3076/**
    30603077 * Retrieves the contents of the search WordPress query variable.
    30613078 *
Note: See TracChangeset for help on using the changeset viewer.