/ Published in: PHP
URL: http://wordpress.org/support/topic/how-do-i-add-custom-stylesheets-to-tinymce
A little function to add custom styles to the tinymce editor in wordpress.
Expand |
Embed | Plain Text
// Add custom CTA styles to TinyMCE editor function tdav_css($wp) { $wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css'; return $wp; } } add_filter( 'mce_css', 'tdav_css' );
You need to login to post a comment.
