Skip to content

Opening Gutenberg post in Classic Visual editor adds unwanted <p>&nbsp;</p> content #6385

@weavertheme

Description

@weavertheme

Issue Overview

For GB 2.7:

I don't think gutenberg_disable_editor_settings_wpautop is working as expected. I would hope that it would prevent editing a GB post with the classic editor would prevent it from changing all the blank lines between the GB blocks into <p>&nbsp;</p> which then add lines and show up in GB as a Classic block.

Steps to Reproduce (for bugs)

  1. Create a page/post with Gutenberg blocks (duplicate one you already have
  2. From the All Pages/Posts view, edit that page in the Classic Editor, save
  3. Open same page in Gutenberg - all the formerly blank lines have been changed to <p>&nbsp;</p> with unintended consequences.
  4. It seems from the comments that gutenberg_disable_editor_settings_wpautop is supposed to prevent that, but it doesn't.

Expected Behavior

Current Behavior

Possible Solution

Maybe changing the priority of the gutenberg_disable_editor_settings_wpautop filter?

Screenshots / Video

Related Issues and/or PRs

Todos

  • Tests
  • Documentation

Metadata

Metadata

Labels

Backwards CompatibilityIssues or PRs that impact backwards compatability

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions