[wp-trac] [WordPress Trac] #23324: TinyMCE strips paragraphs/new lines when used in table.

WordPress Trac noreply at wordpress.org
Wed Jan 30 14:01:54 UTC 2013


#23324: TinyMCE strips paragraphs/new lines when used in table.
--------------------------+------------------------
 Reporter:  eskapism      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  3.5.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * component:  General => Formatting
 * milestone:  Awaiting Review =>


Old description:

> When writing text inside a table TinyMCE strips paragraphs when switching
> between the Visual tab and the Text tab. This also happens on save, so
> you actually don't have to use the visual/text-tabs.
>
> I only seems to do it with paragraphs, not with br/ctrl-enter-lines.
>
> Consider this HTML:
>  {{{
> <table border="0">
> <tbody>
> <tr align="left" valign="top">
> <td>New line 3
> New line 4
> New line 5
>
> &nbsp;
>
> &nbsp;
>
> &nbsp;
>
> New paragraph</td>
> </tr>
> </tbody>
> </table>
> }}}
>
> If you click visual tab and then text tab a couple of times (like 4 or 5)
>
> You end up with this:
> {{{
> <table border="0">
> <tbody>
> <tr align="left" valign="top">
> <td>New line 3
> New line 4
> New line 5New paragraph</td>
> </tr>
> </tbody>
> </table>
> }}}
>
> May be a duplicate of
> http://core.trac.wordpress.org/ticket/6485
> and if it is I don't quite understand why it is/was a wont-fix.
>
> Tested in Chrome 25.0.1364.45 beta and FireFox 18.0.1 and WordPress 3.5.1
> and WordPress 3.6-alpha-23288.

New description:

 When writing text inside a table TinyMCE strips paragraphs when switching
 between the Visual tab and the Text tab. This also happens on save, so you
 actually don't have to use the visual/text-tabs.

 I only seems to do it with paragraphs, not with br/ctrl-enter-lines.

 Consider this HTML:
  {{{
 <table border="0">
 <tbody>
 <tr align="left" valign="top">
 <td>New line 3
 New line 4
 New line 5

 &nbsp;

 &nbsp;

 &nbsp;

 New paragraph</td>
 </tr>
 </tbody>
 </table>
 }}}

 If you click visual tab and then text tab a couple of times (like 4 or 5)

 You end up with this:
 {{{
 <table border="0">
 <tbody>
 <tr align="left" valign="top">
 <td>New line 3
 New line 4
 New line 5New paragraph</td>
 </tr>
 </tbody>
 </table>
 }}}

 May be a duplicate of #6485 and if it is I don't quite understand why it
 is/was a wont-fix.

 Tested in Chrome 25.0.1364.45 beta and FireFox 18.0.1 and WordPress 3.5.1
 and WordPress 3.6-alpha-23288.

--

Comment:

 Duplicate of #20943.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23324#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list