Adding your css stylesheet to TinyMCE editor in WordPress admin panel.
Source code viewer
# Copy this into your themes functions.php file # Adds css stylesheet to wysiwygs preview in admin panel. function css_to_mce( $wp ) { $wp .= ',' . get_bloginfo( 'stylesheet_url' ); return $wp; } } add_filter( 'mce_css', 'css_to_mce' );Programming Language: PHP