1) There's probably not much in this sector. You'll want to write your own. My recommendation would be to monitor the font selection event. When your plugin sees that the font has changed, it can simply enable or disable the italic and bold buttons depending on the font selected I think.
2) I think so! You might look at the basicstyles and styles plugin. Also look at adding the event monitor for firebug (It's somewhere on these forums)...that will help you track down the right events to watch.
3) The last part might be easier than you think. In theory, in the same spot as above where you turn off the buttons, you could check to see if those styles are applied to the current selection, and if so, remove the style.
Hope that helps get you started. Look forward to seeing what you do!
Re: Updating buttons based on font selection
1) There's probably not much in this sector. You'll want to write your own. My recommendation would be to monitor the font selection event. When your plugin sees that the font has changed, it can simply enable or disable the italic and bold buttons depending on the font selected I think.
2) I think so! You might look at the basicstyles and styles plugin. Also look at adding the event monitor for firebug (It's somewhere on these forums)...that will help you track down the right events to watch.
3) The last part might be easier than you think. In theory, in the same spot as above where you turn off the buttons, you could check to see if those styles are applied to the current selection, and if so, remove the style.
Hope that helps get you started. Look forward to seeing what you do!
Re: Updating buttons based on font selection
Re: Updating buttons based on font selection
Re: Updating buttons based on font selection