Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pullquote block outputs nested paragraphs #1982

Closed
afercia opened this issue Jul 23, 2017 · 0 comments · Fixed by #1987
Closed

The pullquote block outputs nested paragraphs #1982

afercia opened this issue Jul 23, 2017 · 0 comments · Fixed by #1987
Assignees
Labels
[Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Jul 23, 2017

When inserting a Pullquote block the produced output contains nested paragraphs.
Just insert a Pull quote and the initial markup will be something like:

<!-- wp:core/pullquote -->
<blockquote class="wp-block-pullquote alignnone">
    <p>
        <p>Pull quote content</p>
    </p>
    <footer>Pull quote caption</footer>
</blockquote>
<!-- /wp:core/pullquote -->

Save, and navigate away, then re-open the post in Gutenberg (or just refresh the page). TinyMCE will try to fix the markup. This will end up in something like:

<!-- wp:core/pullquote -->
<blockquote class="wp-block-pullquote alignnone">
    <p>
    </p>
    <p>Pull quote content</p>
    <p></p>
    <footer>Pull quote caption</footer>
</blockquote>
<!-- /wp:core/pullquote -->

Additionally: seems the empty paragraphs above are preserved in Gutenberg. However, when I try this:

  • navigate away and re-open the post in the classic editor - visual mode
  • save or switch to text mode then back to visual
  • the markup will change in something like this:
<!-- wp:core/pullquote -->
<blockquote class="wp-block-pullquote alignnone">Pull quote content

<footer>Pull quote caption</footer></blockquote>
<!-- /wp:core/pullquote -->
  • save and navigate away
  • re-open the post in Gutenberg
  • now the pullquote content has disappeared, the markup will be something like this:
<!-- wp:core/pullquote -->
<blockquote class="wp-block-pullquote alignnone">
    <footer>Pull quote caption</footer>
</blockquote>
<!-- /wp:core/pullquote -->
@afercia afercia added the [Type] Bug An existing feature does not function as intended label Jul 23, 2017
@youknowriad youknowriad self-assigned this Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants