fires on clicking a toolbar item
myEditor.attachEvent("onToolbarClick", function(name){ // your code here });