This is a migrated thread and some comments may be shown as answers.

How to access UI element of context menu

1 Answer 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brian Knoepfel
Top achievements
Rank 1
Brian Knoepfel asked on 21 Jan 2011, 11:37 PM
We use the RadEditor in our application and we always display it in design mode, unless the user has read only access, in which case we display it in preview mode.  The reason for this is so that they can edit right away without having to switch back and forth between modes.  We have a problem with hyperlinks.  In firefox, you can ctrl+click on a hyperlink in design mode and the hyperlink will open in whatever target you've set up.  In IE, it just selects the word.  I'm trying to work around this by implementing a custom tool on the context menu of anchor elements.  I've figured out how to add the tool to the context menu and how to set up the handler...  what I have not been able to figure out is how to access the underlying UI element (i.e. the context), which in this case is the anchor element, so that I can get the URL and open it.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jan 2011, 01:29 PM
Hello Brian,

You can try the solutions provided in the following help articles which could be helpful for IE:

Opening Link In A New Window When Clicked
and
Opening Link In A New Window On Double Click.

Therefore the editor will behaves exactly as in Firefox, you wont need to implement a context menu.


Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Brian Knoepfel
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or