| Custom Context Menu
|
| |
|
<%@ Register TagPrefix="ed" Namespace="OboutInc.Editor" Assembly="obout_Editor" %>
|
Inside the Editor component you can define your own Context Menu items.
This items will be added to the default set.
Inner ContextMenu collection is used.
See also Custom Context Menu.
| |
|
Editor's object for ContextMenu collection
OboutInc.Editor.ContextMenuItem
|
This object has following public properties:
-
Title - String. String that will appear in the Context Menu
-
TagName - String. HTML TagName of nodes for which Conext Menu this item will be added
-
MainFunction - String. Name of JS function that executes on this item click.
-
CheckFunction - String. Name of JS function that defines enabled/disabled status of the item.
See also For JavaScript Developers.
|
|
|
|
|
Sample ASP.NET
<ed:Editor id="editor" runat="server"> <ContextMenu> <ed:ContextMenuItem TagName="Table" Title="Add Shadow" MainFunction="myMakeShadow" CheckFunction="myMakeShadowCheck" /> <ed:ContextMenuItem TagName="Table" Title="Remove Shadow" MainFunction="myRemoveShadow" CheckFunction="myRemoveShadowCheck" /> </ContextMenu> </ed:Editor>
See CustomCM.aspx example in downloaded zip file.
| |
|
| "I first just wanted to take this opportunity to compliment the quality of product you offer, and for a great price! I've been using your products for about two weeks now and can't tell you how much time and effort you've saved me!" |
Keith Howes |
| Symantec Corporation |
| |
|