RadEditor removes href attribute on copy paste- Firefox issue

5 posts, 0 answers
  1. nickybeit
    nickybeit avatar
    7 posts
    Member since:
    Jun 2011

    Posted 04 Aug 2011 Link to this post

    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
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 09 Aug 2011 Link to this post

    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.

  3. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 09 Aug 2011 Link to this post

    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.

  4. nickybeit
    nickybeit avatar
    7 posts
    Member since:
    Jun 2011

    Posted 10 Aug 2011 Link to this post

    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

  5. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 12 Aug 2011 Link to this post

    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.

Back to Top