Url Replacement

Last post 04-11-2008, 10:35 AM by MelB. 1 replies.
Sort Posts: Previous Next
  •  04-08-2008, 4:36 AM 38849

    Url Replacement

    Hello,
    I'm using
     
    $editor->URLType = "Absolute";
     
    to have absolute paths. But the editor convert a url like this:
     
    <a href="http://www.example.com" target="_blank">www.example.com</a>
     
    in
     
    <a href="http://www.example.com" target="_blank">http://www.example.com</a>
     
    adding the "http://". How can I avoid this?
     
    Thanx
    Tom
  •  04-11-2008, 10:35 AM 39103 in reply to 38849

    Re: Url Replacement

    Hi Tommy,
     
    I had problems like this, I found the solution is to leave your addressing relative
    (i.e. no URLType definition) but define your css path ($editor->EditorWysiwygModeCss)
    as absolute. You might have to do image URLs in your content as absolute as well.
     
    Regards
     
    Mel.
     
View as RSS news feed in XML