Created
February 16, 2021 05:15
-
-
Save shubhw12/efe11e3fdd5f22efdfe42ef81bf25893 to your computer and use it in GitHub Desktop.
Add custom styles to TINY 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_action('admin_enqueue_scripts' , 'custom_editor_styles'); | |
function custom_editor_styles( ){ | |
echo ' | |
<style> | |
.mce-content-body p{ | |
color:red; | |
} | |
</style> | |
'; | |
} | |
add_editor_style( 'tinymce-style.css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment