[wp-trac] [WordPress Trac] #42531: Text is splitted into two paragraphs when switching editor tabs
WordPress Trac
noreply at wordpress.org
Tue Nov 14 03:04:31 UTC 2017
#42531: Text is splitted into two paragraphs when switching editor tabs
--------------------------+------------------------------
Reporter: ocean90 | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.9
Component: Editor | Version: 4.9
Severity: major | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+------------------------------
Changes (by pento):
* keywords: needs-patch => has-patch
Comment:
[attachment:42531.2.diff] fixes this bug. `autop()` needed to wrap single
line posts in `<p>` tags, so that, as @aduth noted, TinyMCE doesn't try to
wrap the text nodes in `<p>` tags as it parses the post DOM.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42531#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list