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:

Parameter Type Description
menu Menu The menu to add to.
editor Editor The editor the menu was opened in.

Returns: void