xing/wysihtml5 — pull request #241 by brainztorm (2012-10-10 15:45:46+00:00)
Title: Add an hide event for the ToolbarDialog and add custom action to the toolbar without firing the editor blur event.

I added an hide event for the ToolbarDialog and i wanted to add other custom dialog actions to the toolbar.

The problem is that :
data-wysihtml5-dialog-action="cancel"
data-wysihtml5-dialog-action="save" etc … unobserve the blur event to
(wisely) not fire the editor blur event when the mouse click on those
'buttons'/actions

if you want to add some custom dialog actions, the "unobserve blur" is
not fired. So it fires a blur event form the text editor and (in my
case) close the toolbar dialog.
so i added a custom:command event for custom dialog action like this:

data-wysihtml5-command=""

You can now add custom action to the toolbar without firing the editor
blur event.