YUI: Editor: Buttons En/Disabled by Another Button

This example adds 3 buttons to the Editor's toolbar. The first is always enabled (like a toggle switch), the other 2 are always disabled. When you click on the first button, the other 2 will activate while the first button is selected. Once the first button get's deselected the other 2 buttons will disable and deselect.

Jump to the code

The Javascript