Relative vs. Absolute Paths with Images

  •  02-22-2005, 1:53 PM

    Relative vs. Absolute Paths with Images

    Hi,

    I have an interesting problem.  I have a very simple demo with the following editor setup:

    <CE:EDITOR id="Editor1" RemoveServerNamesFromUrl="false" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 8px" runat="server" Width="720px">

    I want the absolute paths to come through in the html returned to the server. 

    When I insert an image into the editor and immediately save to HTML, I get the following html back at the server:

    Type Here<img height="50" src="/DemoEditor/uploads/aspprologo.gif" width="270" />

    However, when I insert an image AND view the HTML (via the HTML button at the botton of the editor) BEFORE saving I get the following HTML back at the server:

    Type Here<img height="50" src="http://localhost/DemoEditor/uploads/aspprologo.gif" width="270" />


    Why the difference and how can I ensure that I always get the absolute path in the html returned to the server? Is this developer error on my part?

    Thanks!
View Complete Thread