slimline_tinymce_admin_enqueue_scripts() - slimline/tinymce GitHub Wiki

Enqueues custom admin stylesheet.

Source

/**
 * Enqueue custom admin styles and scripts.
 *
 * @link  https://github.com/slimline/tinymce/wiki/slimline_tinymce_admin_enqueue_scripts()
 * @since 0.1.2
 */
function slimline_tinymce_admin_enqueue_scripts() {

	/**
	 * Enqueues styles to keep quicktags from stretching too wide in the WP Editor.
	 *
	 * @link https://developer.wordpress.org/reference/functions/wp_enqueue_style/
	 *       Documentation of `wp_enqueue_style` function
	 * @link https://developer.wordpress.org/reference/functions/trailingslashit/
	 *       Documentation of `trailingslashit` function
	 * @link https://developer.wordpress.org/reference/functions/plugin_dir_url/
	 *       Documentation of `plugin_dir_url` function
	 */
	wp_enqueue_style( 'slimline-tinymce', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'slimline-tinymce.min.css', false, '0.1.0', 'all' );
}

Hooks

Fires at admin_enqueue_scripts at priority 10

Changelog

  • Since 0.1.2