[wp-trac] [WordPress Trac] #20943: Paragraphs get removed in table cells when Visual editor is refreshed
WordPress Trac
noreply at wordpress.org
Wed Feb 4 18:47:43 UTC 2015
#20943: Paragraphs get removed in table cells when Visual editor is refreshed
-------------------------------------------------+-------------------------
Reporter: JboyJW | Owner:
Type: defect (bug) | SergeyBiryukov
Priority: normal | Status: reviewing
Component: Formatting | Milestone: 4.2
Severity: major | Version: 3.2
Keywords: needs-testing needs-unit-tests | Resolution:
wpautop has-patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by Milmor):
Replying to [comment:37 alleynoah]:
> According to my testing, the above fix (20943.3.diff) prevents the
destruction of line breaks inside table cells without requiring any
changes to the backend wpautop. It also does not force all table cell
contents to be wrapped in <p> tags.
With this fix the preview is correct, even if switching between html/text
mode.
But when saved, the bug is still there and affects the preview
(refreshed), even with wp_autop disabled. It happens with and without <p>
(<p> are not kept - lines are not kept)
{{{
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
}}}
Same with 20943.2.diff
4.2-alpha-31330
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20943#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list