Skip to content

Can't break out of Gutenberg quote block at end of post  #1090

Open
@diegoreymendez

Description

@diegoreymendez

Original report by @rachelmcr here: wordpress-mobile/WordPress-iOS#10465

Expected behavior

When a post ends with a blockquote, I should be able to break out of the quote to start a new paragraph.

Actual behavior

If a Gutenberg posts ends with a blockquote, you can't start a new paragraph block after it.

In visual mode it looks like you're starting a new paragraph, but it's absorbed into the quote block:

<!-- wp:quote -->
<blockquote class="wp-block-quote">
  <p>This is a quote.</p>
</blockquote>
<p>More text.</p>
<!-- /wp:quote -->

And if the quote includes a citation, your new paragraph ends up in cite tags:

<!-- wp:quote -->
<blockquote class="wp-block-quote">
  <p>This is a quote.</p>
<cite>And a citation.</cite>

</blockquote>
<cite>More text.</cite><!-- /wp:quote -->

This issue can be easily resolved if you edit the post in Gutenberg (the "Resolve" button there correctly moves the paragraphs into paragraph blocks) but it can cause front-end formatting problems if no changes are made to the post after saving it in the app.

Steps to reproduce the behavior

  1. Launch the empty Gutenberg editor demo.
  2. Switch to HTML mode and paste the following snippet:
<!-- wp:quote -->
<blockquote class="wp-block-quote">
  <p>This is a quote.</p>
</blockquote>
<!-- /wp:quote -->
  1. Switch back to visual mode.
  2. Try to start a new paragraph after the quote. (With the cursor at the end of the quote, hit Enter twice and then type new text.)
  3. Switch to HTML mode and view the output.
Tested on iPhone XS, iOS 12.0.1, WPiOS 11.2.0.2018110701 & iPhone XS simulator, WPiOS develop branch

Original report: https://ios.forums.wordpress.org/topic/create-new-block-after-blockquote

cc @diegoreymendez

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions