URLType default, but need Image src absolute

Last post 01-27-2010, 8:01 AM by analysis_junky. 5 replies.
Sort Posts: Previous Next
  •  01-26-2010, 10:04 AM 58367

    URLType default, but need Image src absolute


    I have the editor URLType configured  as Default to prevent converting certain links.
     
    Now, all of the embedded images are set to relative. This makes sense because of the above statement, but it breaks the images...
     
    My question is, how do I keep the anchor tags using the default functionality, but images use absolute?
     
    I really hope this is possible!
     
    Thanks!
     
     
     
  •  01-26-2010, 12:36 PM 58370 in reply to 58367

    Re: URLType default, but need Image src absolute

  •  01-26-2010, 1:46 PM 58375 in reply to 58370

    Re: URLType default, but need Image src absolute

    No, I need the anchor tags to never be changed...
     
    I use CuteEditor as an email editor with data aware content.
    I have some anchors that are in this format: <a href="{webcast_url}">{webcast_url}</a>
    The only way for it to stay in that format is to keep the URLType  set as default to prevent malforming the structure.
     
    The image src on the other hand needs to be absolute.
     
    Does a setting exist to override one but not the other?
     
  •  01-27-2010, 2:28 AM 58383 in reply to 58375

    Re: URLType default, but need Image src absolute

    Hi analysis,
     
    Please send a mail contains the issue information to me. I will create an example for you.
     
     
    Regards,
     
    Ken
  •  01-27-2010, 7:57 AM 58388 in reply to 58383

    Re: URLType default, but need Image src absolute


    Kenneth,
     
    Thanks! Creating an html filter resolved the issue.
     
     
    function cleanUpHtml(html) {
        var a = 'src="http://www.cutesoft.net/Email_Images/',
            b = 'src="http://www.DOMAIN_NAME_REMOVED.com/Email_Images/';
        return html.replace(a, b);
    }
    function CuteEditor_FilterHTML(editor,code) {
        return cleanUpHtml(code);
    }
    function CuteEditor_FilterCode(editor,code) {
        return cleanUpHtml(code);
    }
    
  •  01-27-2010, 8:01 AM 58389 in reply to 58388

    Re: URLType default, but need Image src absolute


    I noticed that in my previous post, the "a" variable was changed by the editor... 
    it should have been: /Email_Images/
     
    Anyway, using the FilterHTML and FilterCode JavaScript functions resolved my issue.
     
    Thanks!
View as RSS news feed in XML