WordPress at a glance
function is not described

_WP_Editors::enqueue_scripts() public WP 3.3.0

{} It's a method of the class: _WP_Editors{}

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

Hooks from the method
Return

````. Null. Nothing.

Usage

$result = _WP_Editors::enqueue_scripts( $default_scripts );
$default_scripts(true|false)
Whether default scripts should be enqueued.
Default: false

Changelog

Since 3.3.0 Introduced.

Code of _WP_Editors::enqueue_scripts() WP 5.7

<?php
public static function enqueue_scripts( $default_scripts = false ) {
	if ( $default_scripts || self::$has_tinymce ) {
		wp_enqueue_script( 'editor' );
	}

	if ( $default_scripts || self::$has_quicktags ) {
		wp_enqueue_script( 'quicktags' );
		wp_enqueue_style( 'buttons' );
	}

	if ( $default_scripts || in_array( 'wplink', self::$plugins, true ) || in_array( 'link', self::$qt_buttons, true ) ) {
		wp_enqueue_script( 'wplink' );
		wp_enqueue_script( 'jquery-ui-autocomplete' );
	}

	if ( self::$has_medialib ) {
		add_thickbox();
		wp_enqueue_script( 'media-upload' );
		wp_enqueue_script( 'wp-embed' );
	} elseif ( $default_scripts ) {
		wp_enqueue_script( 'media-upload' );
	}

	/**
	 * Fires when scripts and styles are enqueued for the editor.
	 *
	 * @since 3.9.0
	 *
	 * @param array $to_load An array containing boolean values whether TinyMCE
	 *                       and Quicktags are being loaded.
	 */
	do_action(
		'wp_enqueue_editor',
		array(
			'tinymce'   => ( $default_scripts || self::$has_tinymce ),
			'quicktags' => ( $default_scripts || self::$has_quicktags ),
		)
	);
}