Re: Why am I getting p tags around my mktEditable images?

Anonymous
Not applicable

Why am I getting p tags around my mktEditable images?

Hi,
My emails require a full width (600px) image up top that needs to change with each email. I set it up to be a mktEditable div but when I import an image (or use a URL) and save, the program is adding <p> tags around the image so it breaks my template. Is there a way to remove the tags or a better way to handle the images so this won't happen?

thx,
Tony
Tags (1)
5 REPLIES 5
Jason_Scott
Level 4

Re: Why am I getting p tags around my mktEditable images?

I have the same issue, Marketo adds <p> tags.
Anonymous
Not applicable

Re: Why am I getting p tags around my mktEditable images?

I haven't found any way around this one. The WYSIWYG editor adds paragraph tags no matter what. You can always style the <p> tag to remove margins/padding, if that's what's breaking the template.
Anonymous
Not applicable

Re: Why am I getting p tags around my mktEditable images?

Thanks Kate.
I may have found a solution. If you view the html in the WYSIWYG and remove the tags at that point, and then import your image, the tags disappear. It's a sketchy hack but it worked for me this last attempt.
Anthony_Pica
Level 4

Re: Why am I getting p tags around my mktEditable images?

Tony, I tried that. But when I edit the HTML Source again for the second time, the <p> tags are added back.
Anonymous
Not applicable

Re: Why am I getting p tags around my mktEditable images?

I am constantly getting this issue regardless of whether I take the tags out in HTML option in the WYSIWYG editor. It is a crazy default oftion in Marketo and needs taking out. I sometimes get it if I insert a table, it adds crazy DIVs and paragraph tags.

I am looking for a fix to this which actually works. I have added a style in the header of the HTML of my template to say p {margin:0px} and this does work but has an unwelcome knock on effect when you want to edit the copy.

Any successful fixes out there?