Skip to content

Instantly share code, notes, and snippets.

Created May 24, 2011 14:24
Show Gist options
  • Save anonymous/988792 to your computer and use it in GitHub Desktop.
Save anonymous/988792 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