Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#58259 closed defect (bug) (duplicate)

Switching from HTML to Visual editor removes paragraphs after line breaks inside TABLES

Reported by: rustybadrobot's profile RustyBadRobot Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords: wpautop
Focuses: Cc:

Description (last modified by sabernhardt)

Empty paragraphs between line breaks inside a TABLE are removed when switching editor mode from HTML to Visual:

<table>
<tbody>
<tr>
<td>Line 1
Line 2

&nbsp;

Line 3
Line 4</td>
</tr>
</tbody>
</table>

After switching between Text / Visual becomes:

<table>
<tbody>
<tr>
<td>Line 1
Line 2&nbsp;

Line 3
Line 4</td>
</tr>
</tbody>
</table>

Then after another switch becomes:

<table>
<tbody>
<tr>
<td>Line 1
Line 2Line 3
Line 4</td>
</tr>
</tbody>
</table>

Change History (1)

#1 @sabernhardt
2 years ago

  • Component changed from TinyMCE to Formatting
  • Description modified (diff)
  • Keywords wpautop added
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi and thanks for the report!

This is an old, known bug tracked in #20943. That ticket suggests a plugin to work around it.

Note: See TracTickets for help on using tickets.