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

[Solved] How to add custom context menu on Iframe in RadEditor

1 Answer 338 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gyan
Top achievements
Rank 1
Gyan asked on 23 Aug 2013, 11:11 AM
Hello,
         I am working on a project made in vs2010,As per my requirement I have a Iframe in radeditor  and want to add a custom context menu on this Iframe. I have tried a lot but failed.Please help me or give me any idea.
I am using this code. 

 <telerik:RadEditor ID="RadEditor1" runat="server">
            <Content>
             <iframe style="position:absolute;width:500px;height:500px;" src="http://www.bing.com" originalPath ="http://www.bing.com" originalAttribute=src> </iframe>
            </Content>
        </telerik:RadEditor>


Thank You.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Aug 2013, 07:05 AM
Hi Gyan,

This iframe consumes the mouse events, so the click (or right click) will not bubble to your main page, it.e. to RadEditor. This means it cannot be aware of the fact that the user has clicked inside the iframe in order to show a custom context menu. This is a general browser behavior related to security and cross-domain access that we cannot influence.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Gyan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or