Skip to content

NotebookNavigatorMenuEventRegistrarComponent.registerEditorMenuEventHandler method

NotebookNavigatorMenuEventRegistrarComponent › registerEditorMenuEventHandler

Accepts an editor-menu registration and does nothing with it.

Notebook Navigator extends the file tree, not the editor — an editor menu there is Obsidian's own, which the handlers already reach through the workspace event. The registration is inert rather than refused so a handler that declares one is not a load-time error.

Signature:

registerEditorMenuEventHandler(_handler: EditorMenuEventHandler): DisposableEx

Parameters:

ParameterTypeDescription
_handlerEditorMenuEventHandlerThe handler, deliberately unused.

Returns: DisposableExA DisposableEx that has nothing to undo.