tags:

views:

344

answers:

2

I can disable the table button using this:

  tinyMCE.activeEditor.controlManager.get('divId_table').setDisabled(true)

but what I'm interested in is actually hiding it. Any idea on how to accomplish that?

Thank you!

+1  A: 

I'm not familiar with TinyMCE myself, but since you appear to have javascript access to the element itself, all you need to do is set it's display property to "none".

document.getElementById("theButton").style.display = "none";
Andrew
A: 

First, you have to use the advanced theme.

Then, add this option in the TinyMCE init code.

tinyMCE.init({
    ...
    theme_advanced_disable : "bold, justifyleft, justifyright"
});

I hope this might help someone.

source

list of elements' name here

andyk