Add right click context menu with custom menu items

I need to add to CM editor right click context menu with my custom menu items. I would appreciate if you can share any sample code.

Browsers don’t let you extend or change context menus. So the only option you have is entirely overriding the menu by capturing right clicks, but that’s usually a bad idea in an editor since it’ll make the native menu inaccessible.

1 Like