<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Thematic function (custom CSS) to TinyMCE</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 06:45:32 +0000</pubDate>

<item>
<title>guyk on "Thematic function (custom CSS) to TinyMCE"</title>
<link>http://themeshaper.com/forums/topic/thematic-function-custom-css-to-tinymce#post-15449</link>
<pubDate>Wed, 08 Sep 2010 13:07:54 +0000</pubDate>
<dc:creator>guyk</dc:creator>
<guid isPermaLink="false">15449@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hello&#60;/p&#62;
&#60;p&#62;i find this function and i want to use it with thematic&#60;br /&#62;
to add some function(custom CSS) to TinyMCE&#60;/p&#62;
&#60;p&#62;i think i have to transform to thematic function&#60;br /&#62;
can you give me the good way to do it&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;p&#62;guy&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.wdmac.com/how-to-use-custom-styles-in-the-word-press-post-editor&#34; rel=&#34;nofollow&#34;&#62;http://www.wdmac.com/how-to-use-custom-styles-in-the-word-press-post-editor&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Editing you theme’s functions.php&#60;br /&#62;
/* Custom CSS styles on WYSIWYG Editor – Start&#60;br /&#62;
======================================= */&#60;br /&#62;
if ( ! function_exists( ‘myCustomTinyMCE’ ) ) :&#60;br /&#62;
function myCustomTinyMCE($init) {&#60;br /&#62;
$init['theme_advanced_buttons2_add_before'] = ‘styleselect’; // Adds the buttons at the begining. (theme_advanced_buttons2_add adds them at the end)&#60;br /&#62;
$init['theme_advanced_styles'] = ‘Float Left=fleft,Float Right=fright’;&#60;br /&#62;
return $init;&#60;br /&#62;
}&#60;br /&#62;
endif;&#60;br /&#62;
add_filter(‘tiny_mce_before_init’, ‘myCustomTinyMCE’ );&#60;br /&#62;
add_filter( ‘mce_css’, ‘tdav_css’ );&#60;br /&#62;
// incluiding the Custom CSS on our theme.&#60;br /&#62;
function mycustomStyles(){&#60;br /&#62;
wp_enqueue_style( ‘myCustomStyles’, get_bloginfo(‘template_url’).’/mycustomstyles.css’, ”,”,’all’ ); /*adjust this path if you place “mycustomstyles.css” in a different folder than the theme’s root.*/&#60;br /&#62;
}&#60;br /&#62;
add_action(‘init’, ‘mycustomStyles’);&#60;br /&#62;
/* Custom CSS styles on WYSIWYG Editor – End&#60;br /&#62;
======================================= */
&#60;/p&#62;</description>
</item>

</channel>
</rss>
