Multiple returns result in a broken page
-
If a user edits a page from the front end, and inserts multiple return lines – br tags are inserted, and wrapped in div. This creates invalid HTML on the front-end.
The invalid HTML broke the back-end editor for the p tag, resulting in “Block contains unexpected or invalid content” warning. Attempt recover then removes the content added via front-end.
This behavior is present for all blocks currently available – paragraph, heading, verse, preformatted and list-item.
To replicate:
- Create a page and insert content of each available type – paragraph, heading, verse, preformatted and list-item. Save.
- Edit page from the front end. For each content type, add multiple empty returns, then additional content. Save.
- View page while not logged in user and note HTML structure (br div br).
- View page from back-end editor and note broken blocks, as applicable.
WordPress 7.0.1, WordPress twenty twenty-five theme, Jamie’s Front-End Editor for Content Teams 0.2, and no other plugins added or active.
You must be logged in to reply to this topic.