I have found out that I can hook into onOk with this:
onOk
editor.on(\'dialogShow\', function (ev) { var name = ev.data.getName(); var defini
var oldImplementation = definition.onOk; definition.onOk = function(e) { oldImplementation(e); console.log( e ); };