waviaei
8/23/2012 - 4:26 PM

WordPress / Tiny MCE / customize format choices

WordPress / Tiny MCE / customize format choices

//Not to show h1 on Tiny MCE
function custom_editor_settings( $initArray ){
    $initArray['theme_advanced_blockformats'] = 'p,address,pre,code,h2,h3,h4,h5,h6';
    return $initArray;
}
add_filter( 'tiny_mce_before_init', 'custom_editor_settings' );