Return to Snippet

Revision: 57981
at June 19, 2012 08:18 by bitsculptor


Initial Code
// Add custom CTA styles to TinyMCE editor
if ( ! function_exists('tdav_css') ) {
	function tdav_css($wp) {
		$wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css';
		return $wp;
	}
}
add_filter( 'mce_css', 'tdav_css' );

Initial URL
http://wordpress.org/support/topic/how-do-i-add-custom-stylesheets-to-tinymce

Initial Description
A little function to add custom styles to the tinymce editor in wordpress.

Initial Title
Add custom styles to visual editor Wordpress

Initial Tags
wordpress

Initial Language
PHP