Skip to content

Instantly share code, notes, and snippets.

@andyadams
Created April 9, 2012 18:36
Show Gist options
  • Save andyadams/2345310 to your computer and use it in GitHub Desktop.
Save andyadams/2345310 to your computer and use it in GitHub Desktop.
TinyMCE toggle third row of buttons
init : function( ed, url ) {
ed.onInit.add(function( ed ) {
if ( getUserSetting( 'hidetb', '0' ) == '0' ) {
jQuery( '#content_toolbar3' ).hide();
}
jQuery( '#wp-content-editor-container #content_wp_adv' ).click(function() {
if ( jQuery( '#content_toolbar2' ).is( ':visible' ) ) {
jQuery( '#content_toolbar3' ).show();
} else {
jQuery( '#content_toolbar3' ).hide();
}
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment