How to customize context menu and include dynamic options

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
ganem2
Posts: 21
Joined: Wed Jun 29, 2022 8:49 am

How to customize context menu and include dynamic options

Post by ganem2 »

Hi Team,
I need to customize the default context menu in web author. below are my requirements.
1. rename existing context menu options to more suitable words for our use case.
2. add our custom actions to context menu - currently we can add them from frameworks / actionsConfiguration.contextualItems on ACTIONS_LOADED event. But we need a way to add from plugin after editor is loaded.
3. make conditional context menu. for eg: we need to show a table cell specific actions when context menu is opened on table cell. and row specific actions when row is selected. or text specific actions when part of the document is selected.
4. remove autocorrection context menu when right clicked on word with spelling error.

I tried to find ways to achieve this by following customization guide. but could not find a way. any help would be appreciated.