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

How to strip out image paths in RadEditor HTML view

1 Answer 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mani Pandian
Top achievements
Rank 1
Mani Pandian asked on 18 May 2011, 09:31 PM
Hi,

I'm using Radeditor to do some HTML file editing on my website and all the Images on my HTML page is from a shared path that I have assigned to my RadEditor Image manager. When I include any Image on to the content area of the RadEditor it shows the complete shared path in the image src attribute.

Is there any way that I could show just a relative path ?

For example : my images are in a shared path //serverName/FolderName/Images and I'm using an image from this path which  is shown in the HTML view as <image src ="//serverName/FolderName/Images/a.jpeg "/>

Is it possible to make the RadEditor to show just a relative path like  <image src ="/Images/a.jpeg "/> in the HTML view, I saw some ideas from other threads related to this topic but they are not applicable to the latest version of RadControls. Please let me know your thoughts on this.

Thanks,
Mani

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 May 2011, 02:59 PM
Hi Mani,

You could implement a custom DOM content filter and convert all shared image src paths to relative. You can see how to implement a custom filter in the following live demo: http://demos.telerik.com/aspnet-ajax/editor/examples/contentfilters/defaultcs.aspx.

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