-
-
Save ChrisLTD/988796 to your computer and use it in GitHub Desktop.
Add Custom CSS to MCE Editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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