Image dialog — extend onOk, instead of total overwrite

前端 未结 2 1832
轮回少年
轮回少年 2020-12-21 03:43

I have found out that I can hook into onOk with this:

editor.on(\'dialogShow\', function (ev)
{
    var name = ev.data.getName();
    var defini         


        
2条回答
  •  [愿得一人]
    2020-12-21 04:13

    var oldImplementation = definition.onOk;
    definition.onOk = function(e)
    {
        oldImplementation(e);
        console.log( e );
    };
    

提交回复
热议问题