Email Template Editor Breaking Layout

Hi, I’m having major issues with the ERPNext Email Template editor. Both custom HTML and the built-in editor break immediately after saving.
**

  1. Using “Use HTML”**

When I paste valid email HTML (tables, inline styles), ERPNext modifies the HTML on save:

  • Tables break into multiple cells

  • Layout shifts

  • Inline styles disappear

  • The saved HTML is not the same as what I entered

2. Using the built-in table editor

Even if I build a simple 3-column grid without any custom HTML, the layout looks correct before saving, but after saving ERPNext:

  • Splits columns

  • Moves images/text into wrong cells

  • Breaks the entire grid

3. Using the inline HTML (< > icon)

If I use the editor’s inline HTML option, the sent email shows raw HTML code instead of rendering it.

<a href="https://alirameddevices.com/shop/" style="padding:2px 5px">Shop Thanksgiving Deals</a>


and when i hit save button this is the layout i get
This makes it impossible to create any formatted or multi-column email template.

Any guidance or workaround would be appreciated.

Thanks!

1 Like

Hi Farjaad. Did you ever find a solution to this? I’m facing a similar issue with tables in text editor fields

ya, we raise a support ticker and the team resolved it