# Viewing email templates in wysiwyg composer causes an error

**URL:** https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984
**Category:** Bug
**Tags:** composer, email-templates
**Created:** [August 29, 2025, 10:56pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984 "2025-08-29T22:56:22Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![xkhalid](https://avatars.discourse-cdn.com/v4/letter/x/3ab097/32.png) [@xkhalid](https://meta.discourse.org/u/xkhalid)
#### Post date: [August 29, 2025, 10:56pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/1 "2025-08-29T22:56:22Z")

</div>

Also when I navigate to : admin/email/templates/system\_messages.reviewables\_reminder

I get this message :

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/6/f/26f91dc4499b993562652f35f5d1534122de0fc3.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 29, 2025, 11:12pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/2 "2025-08-29T23:12:10Z")

</div>

I think that happens when you use the new wysiwyg mode of the composer in that input field. I can reproduce it by using the toggle.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 31, 2025, 11:41pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/4 "2025-08-31T23:41:31Z")

</div>

Thanks for reporting, we will have a look over the next few weeks. Workaround for now is not to select rich composer in this dialog.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [September 1, 2025, 3:07pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/9 "2025-09-01T15:07:20Z")

</div>

I will make it so we can force a certain mode for certain DEditor components in the app.

Also…there is another bug here. I think because `text_body_template` here has `one` and `other` and our UI doesn’t account for this, which is why we see `[object Object]` as the error:

> <https://github.com/discourse/discourse/blob/13c3cfa5dc62ed6c9975a0258ae77d2d185e1878/config/locales/server.en.yml#L3389-L3391>

This happens in the Markdown editor too, so we are extra broken here. We handle this for the Subject:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/a/8/2a83cbb20032418fc11f3184d6d56d43d853d9a4.png)

> <https://github.com/discourse/discourse/blob/13c3cfa5dc62ed6c9975a0258ae77d2d185e1878/config/locales/server.en.yml#L4059-L4063>

But not for the body template. This has been broken the same way for at least 6 years now [FIX: Don't refer to pending review items as flags · discourse/discourse@76669bb · GitHub](https://github.com/discourse/discourse/commit/76669bb5a6dfa8c3425c1988ae7f240f23fd28cf) … I guess noone ever tried to edit this template.

I will do the forced editor mode here, but I will also do some fix that is the same as Subject for one+other on the template.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [September 2, 2025, 7:46am UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/10 "2025-09-02T07:46:51Z")

</div>

I have a PR to fix this and make some minor composer changes here:

[https://github.com/discourse/discourse/pull/34668](https://github.com/discourse/discourse/pull/34668)

---

<div class="post-metadata">

### Author: ![xkhalid](https://avatars.discourse-cdn.com/v4/letter/x/3ab097/32.png) [@xkhalid](https://meta.discourse.org/u/xkhalid)
#### Post date: [September 2, 2025, 7:39pm UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/11 "2025-09-02T19:39:57Z")

</div>

Dear,

It’s still on Arabic language

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/1/8/11826ff5559fb8e8a8d664a73332a5690e3d1aff.png)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [September 3, 2025, 3:34am UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/12 "2025-09-03T03:34:07Z")

</div>

The PR hasn’t been merged yet. Once merged, you should update and it should be fixed.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [September 24, 2025, 4:28am UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/13 "2025-09-24T04:28:48Z")

</div>

Okay the PR has been merged; sorry for the delay, we had our meetup and then I was on leave.

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [September 24, 2025, 4:29am UTC](https://meta.discourse.org/t/viewing-email-templates-in-wysiwyg-composer-causes-an-error/380984/14 "2025-09-24T04:29:02Z")

</div>


