TinyMCE & Wordpress - using theme CSS
December 23rd, 2007
TinyMCE is a fine WYSIWYG you can use for comfort posts writing in Wordpress. It’s so easy to integrate, so you can use it with your own CMS in mere minutes. But what really sucks when it comes to Wordpress integration is the fact, that you don’t really see the CSS aplied while writing the post. However this could be easily fixed by editing single line in your TinyMCE config.
Locate your TinyMCE config file in /wp-includes/js/tinymce/tiny_mce_config.php. Now open it (f.e with Notepad++ ) and search for "content_css". This property points to CSS used for displaying the WYSIWYG textarea content. You can either edit the CSS to suit your needs or link your theme CSS instead. To link current theme CSS change the line to show: content_css : "<?php bloginfo('stylesheet_url'); ?>",
That’s it. Have fun
Popularity: 49% [?]
