Skip to content

使用自定义组件的时候如何抛出 toolbar 上的自定义按钮命令? #387

@smallCF

Description

@smallCF

{
type: 'button',
content:<span class="data-icon data-icon-delete"></span>,
title:'编辑',
onClick: (e, node) => {
this.editor.trigger('editValue')
},
}
如何在
engineInstance.on("afterCommandExecute", (name, ...args) => {
console.log(name, args)
});
这里能监听的到这个editValue 这个指令,目前我没办法监听到

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions