hello
i find this function and i want to use it with thematic
to add some function(custom CSS) to TinyMCE
i think i have to transform to thematic function
can you give me the good way to do it
thanks
guy
http://www.wdmac.com/how-to-use-custom-styles-in-the-word-press-post-editor
Editing you theme’s functions.php
/* Custom CSS styles on WYSIWYG Editor – Start
======================================= */
if ( ! function_exists( ‘myCustomTinyMCE’ ) ) :
function myCustomTinyMCE($init) {
$init['theme_advanced_buttons2_add_before'] = ‘styleselect’; // Adds the buttons at the begining. (theme_advanced_buttons2_add adds them at the end)
$init['theme_advanced_styles'] = ‘Float Left=fleft,Float Right=fright’;
return $init;
}
endif;
add_filter(‘tiny_mce_before_init’, ‘myCustomTinyMCE’ );
add_filter( ‘mce_css’, ‘tdav_css’ );
// incluiding the Custom CSS on our theme.
function mycustomStyles(){
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.*/
}
add_action(‘init’, ‘mycustomStyles’);
/* Custom CSS styles on WYSIWYG Editor – End
======================================= */