Skip to main content
Participating Frequently
Dec 21, 2022 7:35 PM UTC
Question

Replacing existing image with new one via paste adds additional code - issue

I do a weekly econnerence email campaign and use the previous weeks email to update each week. I will often copy and paste an image from an older email, replacing an existing image. When I do this, it adds in the new images source link and desitination link, but keeps the old images links. Email seems to finction fine, but probably not a great idea to have the extra code that serves no purpose and for all I know may effect the enails functionality. I therefore go into the code and remove the old/extra code. Is there a way I can do what I'm doing (copy/paste) and have the new code REPLACING the previous/old images code? TIA.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    Nancy OShea
    Community Expert
    Community Expert
    Dec 21, 2022 10:18 PM UTC

    FYI, emails must contain absolute URLS to images hosted on the web server, not local files on your computer.  

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    Dec 21, 2022 10:30 PM UTC

    They do. Why is that a factor based on my posted issue. Thank you.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Dec 22, 2022 12:03 AM UTC

    Are you copying the actual CODE from document 1 into CODE panel of document 2?  Assuming the source code & target contain no coding errors, it should work as expected.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    Dec 21, 2022 8:26 PM UTC

    Don't use copy & paste.  Use Insert > Image or the Properties Panel (Ctrl + F3) to choose a new  image src, see screenshot.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    Dec 21, 2022 8:11 PM UTC

    It's hard to say what could be going on from what you describe. It could be anything from an OS problem, all the way down to a small code error in the specific email you're working on that's causing it.

    Where are you copy/pasting, in Live View or Design View?

    I understand you're working on html emails, but have you created a Site Definition for them? DW really does need that step taken in order to work with your assets correctly. 

    Translate
    Participating Frequently
    Dec 21, 2022 9:13 PM UTC

    I am currently doing the copy and pasting on the Design View. I have not created a Site Definition. I will look into this. Thank you for your help!

    Translate