Skip to content

Instantly share code, notes, and snippets.

@ChrisLTD
Forked from anonymous/gist:988792
Created May 24, 2011 14:25
Show Gist options
  • Save ChrisLTD/988796 to your computer and use it in GitHub Desktop.
Save ChrisLTD/988796 to your computer and use it in GitHub Desktop.
Add Custom CSS to MCE Editor
add_filter('mce_css', 'my_editor_style');
function my_editor_style($url) {
if ( !empty($url) )
$url .= ',';
// Change the path here if using sub-directory
$url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';
return $url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment