Absolute URL for Images and not HREF

  •  11-09-2009, 7:59 AM

    Absolute URL for Images and not HREF

    Hi
     
    I am hovaing problems with Absolute URL regarding images and HREF links  
     
    Take this example HTML 
    <a href="#section1">Example Link</a>
    <br />
    <img name="" src="http://cutesoft.net/example-image.jpg"/>

    Then if $editor->URLType="Absolute"; then your editor will change the source of both the href and the image src to the something like

    <a href="http://www.example.com#section1">Example Link</a>
    <br />
    <img name="" src="http://www.example.com/example-image.jpg"/>
    But I don't want the href to be changed, only the image src. So the resulting code should actually be:
    <a href="#section1">Example Link</a>
    <br />
    <img name="" src="http://www.example.com/example-image.jpg"/>
    There are many examples I can think of that the requires the href left as is and the image src to be changed. This is especially true when using anchor tags.
     
    So is it possible to do this and if not would you be willing to add this feature. 
     
    Thanks
    Sam  
View Complete Thread