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

WordPress Trac noreply at wordpress.org
Fri Jan 9 21:08:33 UTC 2015


#20943: Paragraphs get removed in table cells when Visual editor is refreshed
-------------------------------------------------+-------------------------
 Reporter:  JboyJW                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  major                                |     Version:  3.2
 Keywords:  needs-testing needs-unit-tests       |  Resolution:
  needs-patch wpautop                            |     Focuses:
-------------------------------------------------+-------------------------

Comment (by 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.

 I'd be happy to contribute test coverage but couldn't quite parse the
 existing structure to figure out where it would make sense to do so (aside
 from generally, I think, in tests/qunit/editor/ somewhere?).

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


More information about the wp-trac mailing list