Skip to content

menu-event-registrar

Menu event registrar.

Interface Description
MenuEventRegistrar Registers menu event handlers with lifecycle management.
Type Description
EditorMenuEventHandler Handler for the editor context menu event.
FileMenuEventHandler Handler for the single-file context menu event.
FilesMenuEventHandler Handler for the multi-file context menu event.
MarkdownViewportMenuEventHandler Handler for the markdown viewport (margin) context menu event. This is the menu raised by right-clicking the empty space BESIDE the text — the one carrying Readable line length / Line numbers / Inline title — or the line-number gutter. It is a different menu from the editor one: with Readable line length on, the text is centred inside a narrower .cm-sizer, so a margin click lands outside the editor’s contentDOM and editor-menu never fires.