Posted By

bitsculptor on 06/19/12


Tagged

wordpress editor tinymce visual


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jallanx
DaR3Y


Add custom styles to visual editor Wordpress


 / 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.

  1. // Add custom CTA styles to TinyMCE editor
  2. if ( ! function_exists('tdav_css') ) {
  3. function tdav_css($wp) {
  4. $wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css';
  5. return $wp;
  6. }
  7. }
  8. add_filter( 'mce_css', 'tdav_css' );

Report this snippet  

You need to login to post a comment.