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

[Solved] RadEditor pasteHtml removes links with empty href in IE

1 Answer 154 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nick Jensen
Top achievements
Rank 1
Nick Jensen asked on 20 Dec 2009, 11:11 PM
Hi there,

I have several custom Link Managers that I use to link to various internal pages - microsites, unsubscribe pages, surveys etc., as well as ordinary links. These managers return a link in the format <a href="" customtype="typename" customid="1234">content</a>. When I insert this into the editor using pasteHtml in IE 7 and 8, nothing is pasted in. If I remove the empty href attribute, then the link will be pasted in and in other browsers this has no consequences so this is the method I am using. However, again in IE 7 and 8, the links do not get styled as links without an href, so unless I set a class directly on the link, it just looks like plain text, which is confusing for users.

If I load an editor with a link formatted as above with the empty href attribute, it behaves as it should, so the editor is happy enough with the custom link. It just seems that the pasteHtml function has problems with it for IE? Is there anything I can do about this?

I'm using radEditor AJAX 2009, Q3

Thanks,
Nick

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Dec 2009, 02:52 PM
Hi Nick,

As you have noticed this is a browser behavior of Internet Explorer because the issue does not occur in the other browser. You should always specify an URL name before pasting the link in IE.
 In your scenario you could put a simple &nbsp; or http:// value for URL which you can later change using a custom content filter once the link is pasted in the editor.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Nick Jensen
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or