This is a migrated thread and some comments may be shown as answers.
pasteHTML across browsers
2 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
christopher willis
Top achievements
Rank 1
christopher willis asked on 31 Dec 2009, 08:59 PM
I finally have pasteHTML working pretty well, but I need some help to smooth the behavior across browsers

with this code:
.pasteHtml('<a href="#">link</a><br/> \r\n');

IE8 & FF3.5 will paste the link, and put the cursor below the link. I want it to work this way.

Safari 4 & Chrome 4 will paste the link, but will select the pasted entire link.  

I don't want it to work this way as the next pasteHTML will continuously replace the previous pasteHTML.

I need a way to make Safari and Chrome NOT select (or unselect after the fact) the pasted HTML, like IE & FF does.  

Thanks

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Jan 2010, 03:53 PM
Hi Christopher,

The observed behavior is due to the Rich Text Editing engine of the WebKit based browser Safari and Chrome. If you test the RadEditor built-in dialogs you will noticed that the inserted elements images, tables and links are also selected.

I was able to reproduce similar results in our competitors' editors in Chrome and Safari. Nevertheless, I logged the issue and we will try to improve the pasteHtml method.


Kind regards,
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.
0
christopher willis
Top achievements
Rank 1
answered on 01 Jan 2010, 09:59 PM
I spent almost a day trying to get it to work, but didn't make any headway.  Thank you very much for looking into it. 
Asked by
christopher willis
Top achievements
Rank 1
Answers by
Rumen
Telerik team
christopher willis
Top achievements
Rank 1
Share this question
or