RadEditor corrupts image links in Firefox

4 posts, 0 answers
  1. Mark
    Mark avatar
    3 posts
    Member since:
    Jun 2011

    Posted 20 Jun 2011 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    13747 posts

    Posted 20 Jun 2011 Link to this post

    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.

  3. Mark
    Mark avatar
    3 posts
    Member since:
    Jun 2011

    Posted 20 Jun 2011 Link to this post

    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.
  4. Mark
    Mark avatar
    3 posts
    Member since:
    Jun 2011

    Posted 20 Jun 2011 Link to this post

    Solution is to add ContentFilters="MakeUrlsAbsolute, DefaultFilters" to the editor in your aspx file.
Back to Top