css - Default styles editor wordpress -


i have wordpress site has styles made beginning affect original text editor wordpress .

for example:

if text editor , in "visual " tab, put left-aligned image , not align , assume class placing editor not exist. applies " p " tags have different styles placed editor ( "visual" tab).

having explained this, how put classes , original styles of "visual " tab of editor , functions should ?

any ideas ?

thank you

you can add custom stylesheet visual editor.

in theme functions.php :

function my_editor_styles() {   add_editor_style( get_stylesheet_directory_uri() . '/css/custom-editor.css' ); } add_action('after_setup_theme', 'my_editor_styles'); 

then in custom-editor.css file, add rules in way prevent conflict wp admin:

body#tinymce.wp-editor p {   color: red; } 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -