Customizing WordPress WYSIWYG editor TinyMCE
Since WordPress 3.0 there is a function to apply editor styles to the default WYSIWYG editor TinyMCE. By using the function add_editor_style(); you can define the stylesheet where you have your editor styles defined. Typically you put the call in your theme’s functions.php file. Default the function looks in your themes root folder for the file editor-style.css and if you want to, you can specify a location and stylesheet name yourself. Location starts with the themes root folder; add_editor_style(‘css/editorstyles.css’);
Notice that you should of course not copy all your template stylesheet styles to the editor stylesheet. Only the ones necessary, typically the styles that is used for styling your posts.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.