onContextMenuShow

function onContextMenuShow(options: ContextMenuOptions): void

Description

The function called when the context menu has been shown.

If a plugin is listening for this event, it must call the {@link /plugin/executeMethod/common/addcontextmenuitem AddContextMenuItem} method (synchronously or not), because the editor waits for responses from all plugins before filling the context menu.

Parameters

Defines the context menu information.

Returns

void

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).