Viewing email templates in wysiwyg composer causes an error

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:

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

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 … 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.

3 Likes