Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Don't use copy & paste. Use Insert > Image or the Properties Panel (Ctrl + F3) to choose a new image src, see screenshot.
Copy link to clipboard
Copied
FYI, emails must contain absolute URLS to images hosted on the web server, not local files on your computer.
Copy link to clipboard
Copied
They do. Why is that a factor based on my posted issue. Thank you.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
No. Doing this is the Live layout and pasting in the image from a past email. Code I send up with is like this:
<a href="https://store.thinkedu.com/xp-pen-starg640-6x4-osu-ultrathin-graphics-tablet-with-corel-painter-2020..."><img src="https://www.thinkedu.com/email/PTR2020_XPPEN64_600.jpg" alt="XP-Pen Pen Tablet w/Painter $79" width="600" height="512"></a><a href="https://store.thinkedu.com/corel-wordperfect-office-2021-professional---1-time-purchase-special-offe..."></a><a href="https://store.thinkedu.com/corel-wordperfect-office-2021-professional--download-p14092.aspx"></a>
when it should only be:
<td align="center">
<a href="https://store.thinkedu.com/xp-pen-starg640-6x4-osu-ultrathin-graphics-tablet-with-corel-painter-2020..."><img src="https://www.thinkedu.com/email/PTR2020_XPPEN64_600.jpg" alt="XP-Pen Pen Tablet w/Painter $79" width="600" height="512"></a>
Copy link to clipboard
Copied
Right because that's what you copied from the previous email -- a hyperlinked image and its surrounding code. Dreamweaver is just doing what you told it to do.