Using the snippet below you will be able to add theme style to style.css of the active theme to the WordPress TinyMCE post and page editor.
1 2 3 4 5 6 | /* USE CUSTOM STYLE.CSS IN POST EDITOR */ add_action('init', 'add_style'); function add_style() { add_editor_style('style.css'); } /* END USE CUSTOM STYLE.CSS IN POST EDITOR */ |
Snippet Source/Credit: eckstein.id.au