WordPress函数:wp_enqueue_editor

一、函数简介

输出编辑器脚本、样式表和默认设置。(Outputs the editor scripts, stylesheets, and default settings.)  

二、函数参数

   

三、函数案例

<?php wp_enqueue_editor() ?>
   

四、源代码

/**
 * 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();
}
   
THE END