is possible to show class directly from css in format dropdown?
I try this but doesn't work
First create format button
function add_editor_buttons($buttons) {
array_unshift($buttons, 'styleselect');
return $buttons;
}
add_filter('mce_buttons_2', 'add_editor_buttons');
Second set content css with path to my css and set the append of class in dropdwon TRUE
function my_format_TinyMCE( $in ) {
$in['content_css'] = get_template_directory_uri() . "/custom.css";
$in['importcss_append'] = TRUE;
return $in;
}
add_filter( 'tiny_mce_before_init', 'my_format_TinyMCE' );
Editor now show the style correctly but the dropdown don't show the list of class in custom.css.
Any idea? Thanks so much!!!