• Ben

    (@benbaudart)


    The line break (<br>) and image (<img>) tags are still not validating in the code editor + the closing “/” gets stripped from the img tag when switching in & out of the code editor of the Email Message in an Email action.

    This issue is related to https://wordpress.org/support/topic/new-rich-text-editor-does-not-support-single-line-breaks/ – which is marked as resolved because… “Hey just rollback to 3.14.0 and wait for a solution” – but that was 3 months ago. Still no solution!

    Steps to reproduce:
    1. Go to the “Email Message” of an Email action in any form
    2. Paste one of the following lines in the html code editor:

    <p>line 1<br>line 2</p>
    <div><img src="image.jpg"></div>

    3. Both will fail the validator (pink highlighted text) – because there is not closing slash : “<br>” instead of “<br />” or “<br/>” and <img> instead <img />.
    It should obviously not fail …
    4. Line break is not displayed when editing in normal mode, everything ends up on one line.
    5. If you toggle the code editor again, the <br> tag will be removed + the closing slash of the image tag has disappeared.

    Illustration:
    Lines 1 & 3 do not pass validation, lines 2 & 4 do pass, but …

    Exit the code editor & come back, <br> tag was removed, closing slash of the <img> was stripped, therefore not validating:

You must be logged in to reply to this topic.