WordPress Editor Issue with upgrading to 3.9+

WordPress Editor Issue with upgrading to 3.9+

Many of our clients take advantage of a key feature we added to their WordPress editor, that is, Custom Styles, and additional buttons such as Sub and Sup Script. If you have upgraded you may have noticed that these custom style drop down menus and icons are no longer available.

What we can tell is that the most recent version upgrade of WordPress included an update to the visual editor, that is the TinyMCE system that WordPress incorporates in their software, to a version 4. In this version some of the advanced functionality and customization that was previously allowed no longer is there.

We are investigating this issue to see if there is a way to work around this but at the time their is no additional documentation to debug this issue, there are however thousands of forum posts of frustrated developers like us here at Blackrock Networks, Inc.

This is an example of what used to work and no longer does.

// BRN ADD A CUSTOM STYLE SHEET TO VISUAL EDITOR
add_filter( 'tiny_mce_before_init', 'my_custom_tinymce' );

function my_custom_tinymce( $init ) {
$init['theme_advanced_buttons2_add_before'] = 'styleselect';
$init['theme_advanced_styles'] = 'blue';
return $init;
}

// display custom visual editor

function themename_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'init', 'themename_add_editor_styles' );