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

RadEditor corrupts image links in Firefox

3 Answers 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Jun 2011, 11:46 AM
Hi,

When you drag an image in the editor in Firefox v4.0.1 the link is changed in the HTML view. To test go to

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

and delete all the content from the Design and HTML views. Insert some text with blank lines in between the sentances (press enter twice). . Move your cursor to a blank line somewhere in the middle. Click the Image Manager icon and add an image. Go to the HTML view and verify that the URL to the image is correct

<img alt="" src="/aspnet-ajax/Editor/Img/UserDir/Marketing/200x50-asp.net-featured.jpg" />
Just noticed IE gives <img alt="" src="http://demos.telerik.com/aspnet-ajax/Editor/Img/UserDir/Marketing/200x50-asp.net-featured.jpg" /> for the above.

Go back to design view and drag the image to another position. Go back to HTML view and you will see that the URL is corrupt and changed to something like

<img alt="" src="../../../Editor/Img/UserDir/Marketing/200x50-asp.net-featured.jpg" />

This does not happen in IE v9.0.8112.16421. Is there a fix for this.

Thanks

Mark.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Jun 2011, 12:30 PM
Hi Mark,

Please, try the solution provided in the following forum thread: Q2 2010 Copy and paste a relative url is turning absolute.

Kind 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.

0
Mark
Top achievements
Rank 1
answered on 20 Jun 2011, 01:17 PM
Hi Rumen,

Thanks for getting back to me. I looked at the solution http://www.telerik.com/community/forums/aspnet-ajax/editor/238653-image-path-problem.aspx but this creates a relative path. I need the editor to leave my absolute path as it was created before the image was dragged\moved.

Thanks

Mark.
0
Mark
Top achievements
Rank 1
answered on 20 Jun 2011, 02:03 PM
Solution is to add ContentFilters="MakeUrlsAbsolute, DefaultFilters" to the editor in your aspx file.
Tags
Editor
Asked by
Mark
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mark
Top achievements
Rank 1
Share this question
or