Skip to content

GlobalSearchPluginInstance.onEditorMenu method

GlobalSearchPluginInstance › onEditorMenu

Unofficial

Adds a "Search in selection" item to the editor context menu.

Signature:

onEditorMenu(menu: Menu, editor: Editor): void

Parameters:

ParameterTypeDescription
menuMenuThe menu to add to.
editorEditorThe editor the menu was opened in.

Returns: void