width and height attributes in image tags are removed when using templateAdd or templateUpdate

364 views
Skip to first unread message

Xaver

unread,
Feb 19, 2014, 11:51:49 AM2/19/14
to mailchimp-...@googlegroups.com
 Ticket ID LTK121890596149X

I have a problem where my width and height attribute get remove after I'Ve upload a template via the API

string I send via the API method:

<div mc:edit="TEXT"> another text</div>
<img src="IMGSRC" alt="" title="" width="200" height="225" border="0" mc:edit="Image max width 200 pixel" />


html I get when I inspect the preview in MailChimp:

<div> another text</div>
<img src="IMGSRC" alt="" border="0" style="margin: 0; padding: 0;">


I have no idea if the editor at MailChimp or the API removes the attributes

MailChimp Support

unread,
Feb 20, 2014, 9:32:29 AM2/20/14
to mailchimp-...@googlegroups.com
Thanks for the post, Xaver.
Can you include the full API call you're making, making sure to omit the API key and any other more sensitive information? I want to try to replicate what you're seeing, and so I'll need more info about whether/how a template is being used, whether this is being added to a specific "section", etc. So far I haven't been able to see the same behavior when working with classic templates in my own test account.

-- Anna
Reply all
Reply to author
Forward
0 new messages