• 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:

    1. Create a page and insert content of each available type – paragraph, heading, verse, preformatted and list-item. Save.
    2. Edit page from the front end. For each content type, add multiple empty returns, then additional content. Save.
    3. View page while not logged in user and note HTML structure (br div br).
    4. 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.

    • This topic was modified 1 day, 19 hours ago by somecodeiwrote. Reason: I forgot to include site specifications

You must be logged in to reply to this topic.