Add custom styles to TinyMCE editor

You need to add extra styles to the TinyMCE editor. This is a default editor in WordPress. Copy typography, and post presentation CSS lines lines from your main stylesheet into your new tinymce.css and update your functions.php file:

function custom_mce_css($wp) {

    return $wp .= ',' . get_bloginfo('stylesheet_directory') . '/css/tinymce.css';


add_filter( 'mce_css', 'custom_mce_css' );

tags: & category: -