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

RadEditor removes href attribute on copy paste- Firefox issue

4 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
nickybeit
Top achievements
Rank 1
nickybeit asked on 04 Aug 2011, 11:33 AM
Hi Support,

I'm using latest version of "Telerik RadControls for ASP.NET Ajax" (version :2011.1.413.35).

I have a text along with the image used as a hyperlink as follows.

"Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"

When i copy the above text and paste it inside editor,  the editor removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.

"Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"

Is there any solution for this.? Awaiting for sooner response

4 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 09 Aug 2011, 12:50 PM
Hi Nickybeit,

I tried to reproduce the problem but to no avail? Could you please provide a sample page reproducing this problem so we can examine and debug it locally? Also, are you able to reproduce the problem on the live demos?

For your convenience I have attached my test page. Could you please modify it to a point where the problem occurs and send it back? Also, the following video demonstrates my test, could you please see if I am doing something wrong?
http://screencast.com/t/Qb4xJtronCE

On a side note, the current latest official version of RadControls for ASP.NET AJAX is Q2 2011 (2011.2.712), nevertheless, I used the version that you have pointed (2011.1.413) for my tests.

Greetings,
Dobromir
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.

0
Dobromir
Telerik team
answered on 09 Aug 2011, 12:59 PM
Hi again,

It seems that the attachment failed in my previous reply. I hope this one will be fine.

Greetings,
Dobromir
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.

0
nickybeit
Top achievements
Rank 1
answered on 10 Aug 2011, 05:27 PM
Hi Support,

Thanks for the reply. I'm sorry, there is a gap in my explanation.

The editor already has following code in html mode(default value).

"Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"

Change to design mode , then Copy from the editor (please copy in design mode and not in html mode) and paste to another editor, The above code will become like following text in firefox and safari.

"Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"

Please do reply if this explanation is not clear for you

0
Rumen
Telerik team
answered on 12 Aug 2011, 05:12 PM
Hi Nickybeit,

I researched the problem and found that it is a browser behavior, which can be reproduced with a standard editable iframe element. You can see my test in the following video: http://screencast.com/t/sXq6BcZvJB and reproduce it in the attached HTML page.

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
nickybeit
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
nickybeit
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or