{% content_attribute "email_body" %}

Hi

I’m just wondering how to use this attribute correctly in my email template.

{% content_attribute “email_body” %}

{% end_content_attribute %}

I can see that it defines the area of what is editable, but when I move it to include all the table content in my email template, going back in to edit view I find most of my content has disappeared. Also it would be useful to know if it is mandatory as I could potentially use custom modeules to define the editable areas instead.

Thanks for any advice.

Hi @DM2

could you please share the URL you are working on. This will help the experts I will tag so they will be able to advise you.

Hey @prosa @alyssamwilie @Kevin-C could you please share your knowledge with @DM2 ?

Thank you & Happy Friday

Sharon

Thanks for the reply :slightly_smiling_face:

Can’t share for NDA reasons but essentially:

This arrangement allows me to edit the contents in email editor:

{% content_attribute “email_body” %}

<h1>Title</h1>

<h2>Subtitle</h2>

{% end_content_attribute %}

But as soon as there is a table involved I don’t seem to be able to edit anything:

{% content_attribute “email_body” %}

<tr><td><table><tr><td>

<!-- my contents-->

</td></tr></table></td></tr>

{% end_content_attribute %}

Dan

Hey @DM2 and thank you @sharonlicari

So your issue may be that you’re tryng to make structural elements editable via the content editor. I do not believe that table or table elements are editable in the way you’re attempting to edit them via the content editor.

Maybe try something along these lines:

<tr><td><table><tr><td>

{% content_attribute “email_body” %}

  **\<!\-\- my contents\-\->**

{% end_content_attribute %}

</td></tr></table></td></tr>

thanks, that makes sense.