Skip to main content
Participating Frequently
December 21, 2022
Question

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

  • December 21, 2022
  • 3 replies
  • 490 views

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 has been closed for replies.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    December 21, 2022

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

     

     

    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    December 21, 2022

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

    Nancy OShea
    Community Expert
    Community Expert
    December 22, 2022

    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.

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    December 21, 2022

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

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    December 21, 2022

    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. 

    Participating Frequently
    December 21, 2022

    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!