Cute Editor is a context sensitive application, it is aware of it's context and acts accordingly. Many functions of CuteEditor are accessible via the context menus (accessible through a right-click menu in the content area). This section describes how to control the context menu behavior in a Cute Editor control.
There are many ways to control the context menu behaviors in a Cute Editor control:
| 1. | Disable the default context menu. |
| 2. | Disable the default context menu of the browser |
| 3. | Load the different configuration file dynamically using Editor.ContextMenuMode property. |
| 4. | Disable the context menu group by modifying the context menu configuration files. |
| 5. | Change the available context menu items and the order of the items by editing context menu definition file. |
| 6. | Change the available context menu items and the order of the items by editing context menu definition file. |
To turn off context menus, you can choose one of the following methods:
1. Using the Editor.EnableContextMenu Property to specify whether
the context menu is enabled.
2. Edit context menu configuration files .
All the context menu configuration files can be found in the /CuteEditor/Configuration/ContextMenuMode
folder. In the context menu configuration files, you can find the contextmenu element
which contains the configuration information for the context menus within CuteEditor.
To turn off context menus, you need to disable all of the context menu groups.
To turn off context menus of the browser, you need to set Editor.EnableBrowserContextMenu Property to false.
The context menu definition file (Common.config) can be found in the /CuteEditor/Configuration/Shared
folder. The context menu definition influences the available context menu items
and the order of the context menu items. You can easily customize the context menu
to address your unique needs.
For example, to modify EditGroup menu, you need to change the following code: