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

Strip Images path in RadEditor

1 Answer 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daud
Top achievements
Rank 1
Daud asked on 01 Feb 2011, 09:11 AM
When I use image the url is:
http://localhost/MyApplication/Images/Image.jpg

and after uploading image from RadEditor the url returned from RadEditor becomes
/MyApplication/Images/Image.jpg

I've used StripAbsoluteImagesPaths="true" in RadEditor.
My Telerik verion is 2010.1.309.35

I want the image url should be relative like this:
Images/Image.jpg


Regards,
Daud.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Feb 2011, 09:40 AM
Hello Daud,

Using String.Replace on the server, you will be able to replace or strip the desired part of the URL and therefore display the image correctly on the public site.

If you want to have more precise URL stripping you could implement your own custom content filter that will convert the absolute paths to relative when switching to HTML mode or submitting the content by executing the Telerik.Web.UI.Editor.StripPathsFilter([domainName]); filter of RadEditor.

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