How to strip out image paths in RadEditor HTML view

2 posts, 0 answers
  1. Mani Pandian
    Mani Pandian avatar
    3 posts
    Member since:
    Dec 2009

    Posted 18 May 2011 Link to this post


    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.

  2. Rumen
    Rumen avatar
    13803 posts

    Posted 19 May 2011 Link to this post

    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:

    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.

Back to Top