wordpress / latest / classes / _wp_editors / print_tinymce_scripts.html

_WP_Editors::print_tinymce_scripts()

Print (output) the main TinyMCE scripts.

Source

File: wp-includes/class-wp-editor.php. View all references

public static function print_tinymce_scripts() {
	global $concatenate_scripts;

	if ( self::$tinymce_scripts_printed ) {
		return;
	}

	self::$tinymce_scripts_printed = true;

	if ( ! isset( $concatenate_scripts ) ) {
		script_concat_settings();
	}

	wp_print_scripts( array( 'wp-tinymce' ) );

	echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
}

Uses

Uses Description

Changelog

Version Description
4.8.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_editors/print_tinymce_scripts