Rank: Newbie Groups: Member
Joined: 10/12/2010 Posts: 3
|
Is there any documentation on how to add a context menu (Copy,Paste) to the EO.Web.Editor? any help will be greatly appreciated.
Thank you
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
|
Rank: Newbie Groups: Member
Joined: 10/12/2010 Posts: 3
|
I tried the example you have suggested. However, I the Menu Item can't be added as suggested, because it needs to be within a Menu Control. For example : <TopGroup> <Items> <eo:MenuItem ItemID="Cut" Text-Html="Cut Text"> </eo:MenuItem> </Items> </TopGroup>
Also, when I added the menu item as suggested. I could not access it from the code behind in order to set the Editor's ContextMenuId to this menuItem ID.
Would you please explain how this works?
Thank you
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Yes. You are correct. You would first add a menu item into a menu, then link the Editor control to the Menu control by setting the Editor's ContextMenuID. You can take a look of the full source code of the sample and you will see how it works.
Thanks!
|