Skip to content

how to use onCreateMenu to filter the menus? #12

Description

@MichaelPanwenjie

I want to delete some menus when operating, but when i use onCreateMenu function,It has no any parameter but the ordinary liberary has parameter,How can I use it?

In ordinary liberary : this.editorOptions.onCreateMenu = (items, node) => { items.filter()... }

but now:

image

Can anyone help to use onCreateMenu to filter the menus? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions