[wp-trac] [WordPress Trac] #20943: Paragraphs get removed in table cells when Visual editor is refreshed

WordPress Trac noreply at wordpress.org
Wed Mar 18 03:19:30 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:
-------------------------------------------------+-------------------------
Changes (by sandyr):

 * keywords:  needs-testing needs-unit-tests wpautop needs-patch => needs-
     testing needs-unit-tests wpautop has-patch


Comment:

 Patch attached, as suggested by @nacin: "Paragraph tags might just benefit
 from special handling compared to other blocks, so they can remain in <td>
 or <li> (any others?) untouched."

 Also fixes the _wp_Nop being invoked for every autosave or toggle from
 html to tinymce even if there are no changes in the text.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20943#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list