-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Classic block still displaying unwanted p and br tags when Edit as HTML is chosen #10837
Copy link
Copy link
Open
Labels
[Block] ClassicAffects the Classic Editor BlockAffects the Classic Editor Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Describe the bug
Classic block still displaying unwanted p and br tags when Edit as HTML is chosen. These are somewhat misleading. These unwanted/added tags are not saved in the post_content during update.
To Reproduce
Steps to reproduce the behavior:
- Using the Classic editor create a post something like this.
Classic block still displaying unwanted p and br tags when Edit as HTML is chosen. These are somewhat misleading. These unwanted/added tags are not saved in the post_content during update.
<!--more-->
[clear]
[bw_csv]A,B,C
1,2,3
4,5,6
[/bw_csv]
end of post
- Edit using Gutenberg and see the contents in the Classic block
- Choose More Options > Edit as HTML
- Notice
pandbrtags being added. - Edit the text and perform an Update.
- View the post.
- The unwanted tags have magically disappeared. The content is actually how I want it.
Expected behavior
The Edit as HTML display should not be showing the p and br tags. It's misleading.
Screenshots
If applicable, add screenshots to help explain your problem.
The first screen shot is step 4.

The second screen shot is step 7. You can see that I'd edited the content.
In the sidebar you can see the raw post_content that has been saved as wanted.
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows 10
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] Version 69.0.3497.100 (Official Build) (64-bit)
Additional context
- This is a follow up to Requirement: Classic Text block #5123.
- The Classic block in v4.0.0 is significantly better than when I first reported the problem in v2.6 or so
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] ClassicAffects the Classic Editor BlockAffects the Classic Editor Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
