This code is overriding the OK button behavior -- it cancels instead of inserting font. I think this needs to be:

```
            dlg.getElement().find('.dialog-button[data-button-id="cancel"]').on("click", dlg.close.bind(dlg));

```