Welcome Guest Search | Active Topics | Sign In | Register

Adding Context Menu to the Editor Options
Jay Daka
Posted: Tuesday, November 16, 2010 9:26:09 AM
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
eo_support
Posted: Tuesday, November 16, 2010 9:31:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Jay Daka
Posted: Tuesday, November 16, 2010 10:38:26 AM
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
eo_support
Posted: Tuesday, November 16, 2010 10:51:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.