/ Published in: PHP
A little function to add custom styles to the tinymce editor in wordpress.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 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' );
URL: http://wordpress.org/support/topic/how-do-i-add-custom-stylesheets-to-tinymce