Opened 8 years ago
Closed 8 years ago
#44308 closed defect (bug) (fixed)
TinyMCE: empty paragraphs are created from HTML comments on separate lines
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | TinyMCE | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Follow up from https://github.com/WordPress/gutenberg/issues/6385. To test: http://fiddle.tinymce.com/Ctgaab/5.
To fix this we will need to remove any line breaks from between HTML comments, and insert them again (when wpautop is disabled).
Attachments (1)
Change History (6)
#3
@
8 years ago
I've confirmed 44308.patch works as expected.
I've also confirmed the post content is saved to the database as expected:
$ wp post get 1 --field=content <!-- wp:heading --> <h2>This is a heading block</h2> <!-- /wp:heading --> <!-- wp:paragraph --> <p>This is my paragraph text.</p> <!-- /wp:paragraph -->
Does it make sense to land this in 4.9.7 or 4.9.8?
Note: See
TracTickets for help on using
tickets.
In 44308.patch:
wpautopis not used. Fixes a bug where TinyMCE may insert empty paragraph tags.