# {% content\_attribute "email\_body" %}

**URL:** <https://community.hubspot.com/t/content-attribute-email-body/18845>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [February 18, 2020, 11:16am UTC](https://community.hubspot.com/t/content-attribute-email-body/18845 "2020-02-18T11:16:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [February 18, 2020, 11:16am UTC](https://community.hubspot.com/t/content-attribute-email-body/18845/1 "2020-02-18T11:16:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [February 21, 2020, 11:09am UTC](https://community.hubspot.com/t/content-attribute-email-body/18845/2 "2020-02-21T11:09:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [February 21, 2020, 11:45am UTC](https://community.hubspot.com/t/content-attribute-email-body/18845/3 "2020-02-21T11:45:37Z")

</div>

Thanks for the reply 🙂

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

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [February 21, 2020, 7:32pm UTC](https://community.hubspot.com/t/content-attribute-email-body/18845/4 "2020-02-21T19:32:30Z")

</div>

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\>**

---

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [February 24, 2020, 8:12am UTC](https://community.hubspot.com/t/content-attribute-email-body/18845/5 "2020-02-24T08:12:14Z")

</div>

thanks, that makes sense.
