[wp-trac] [WordPress Trac] #58259: Switching from HTML to Visual editor removes paragraphs after line breaks inside TABLES
WordPress Trac
noreply at wordpress.org
Fri May 5 14:28:02 UTC 2023
#58259: Switching from HTML to Visual editor removes paragraphs after line breaks
inside TABLES
---------------------------+------------------------
Reporter: RustyBadRobot | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version:
Severity: normal | Resolution: duplicate
Keywords: wpautop | Focuses:
---------------------------+------------------------
Changes (by sabernhardt):
* status: new => closed
* component: TinyMCE => Formatting
* milestone: Awaiting Review =>
* keywords: => wpautop
* resolution: => duplicate
Old description:
> 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
>
>
>
> Line 3
> Line 4</td>
> </tr>
> </tbody>
> </table>
>
> After switching between Text / Visual becomes:
>
> <table>
> <tbody>
> <tr>
> <td>Line 1
> Line 2
>
> 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>
New description:
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
Line 3
Line 4</td>
</tr>
</tbody>
</table>
}}}
After switching between Text / Visual becomes:
{{{
<table>
<tbody>
<tr>
<td>Line 1
Line 2
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>
}}}
--
Comment:
Hi and thanks for the report!
This is an old, known bug tracked in #20943. That ticket suggests a plugin
to work around it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58259#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list