User tests: Successful: Unsuccessful:
Pull Request resolves #47292 .
In the Mail Templates edit view com_mails, there are two editor fields: a plain text "Body" field and a rich text "HTML Body" field.
Previously, the plain text <textarea> (and the HTML Body <textarea> when the editor is toggled off) had no explicit width defined. This caused them to fall back to the browser's default narrow cols behavior, leaving them much narrower than their Bootstrap col-md-9 container and creating layout inconsistency.
This PR adds the width="100%" attribute to both the body and htmlbody fields in the com_mails (template.xml)(file:administrator/components/com_mails/forms/template.xml) form definition. Joomla's [EditorField (file:libraries/src/Form/Field/EditorField.php) safely parses this string attribute and passes it to the editor plugins (None, TinyMCE, CodeMirror), which apply it as an inline style="width: 100%;" to ensure the text areas expand gracefully to fill their containers.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration |
Hey @brianteeman, as you mentioned in comment that it was caused due to the height and width being removed from libraries\src\Form\Field\EditorField.php. Would the intended fix be adding that change back?
I have tested that locally too. (height to 500px and width to 100%).
Or would you expect any other solution? Could you please elaborate that.
Thanks a lot!
@Deepcode007 PR #47305 should fix the issue
Okay Rick, shall I close this PR then?
@brianteeman @RickR2H
This is only fixing a symptom of the original error