No, you can define your own command and call this command (+ defualt action) on buttonklick. I donβt know if you need a common way for all buttons. But this is easy to do for just one or two buttons.
Example: We want to add an action to a bold button. First, we define our own command in one of our own plugins (in the section "init: function (ed, url)":
ed.addCommand('my_bold', this.my_bold, this);
Then we overwrite the default action with the command:
if (ed.controlManager.get('bold')){ ed.controlManager.get('bold').settings.cmd='my_bold_action'; };
Now we only need to define the function my bold
my_bold: function() {
source share