Blazor Document Editor Example - Custom Context Menu

Docx Editor / Customization / Custom Context Menu

This example demonstrates how to add custom option in context menu and some customization for context menu.

Loading Syncfusion Blazor Server Demos…

In this example, custom options are added to search the selected text in google. The custom options will be visible after selecting the text.

Context Menu Customization Features

  • Hide existing menu item and show custom menu item alone. It will be achieved by passing boolean value in second parameter of AddCustomMenu() method
  • Show the custom menu item in bottom of the exisiting item. It will be achieved by passing boolean value in third parameter of AddCustomMenu() method
  • Custom Option Functionality achieved by using the ContextMenuItemSelected Event

More information about the document editor features can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE