Make WordPress Core

Opened 11 years ago

Last modified 10 years ago

#3492 closed defect (bug)

Visual Rich Editor wipes out table rows where a CSS class is specified — at Initial Version

Reported by: figcar Owned by:
Milestone: 2.5 Priority: high
Severity: major Version: 2.3
Component: TinyMCE Keywords: has-patch 2nd-opinion
Focuses: Cc:


To replicate nasty bug behavior:

  1. Create a WP Page or Post with the following table code:

<table> <tr><td>First row</td></tr> <tr class="even"><td>Second row</td></tr> <tr><td>Third row</td></tr> <tr class="even"><td>Fourth row</td></tr> <tr><td>Fifth row</td></tr> </table>

  1. With Visual Rich Editor (VRE) enabled, open the page for editing. Wait for VRE to load... Don't change anything. Just click "Save".
  1. VRE seems to cause the rows with a class specified -- and all their data -- to be removed (poof!), leaving this:

<table> <tr><td>First row</td></tr> <tr><td>Third row</td></tr> <tr><td>Fifth row</td></tr> </table>

Use case: I'll often use a class on table rows for applying background color (from the stylesheet) to alternate rows for tabular data.

I've observed this VRE behavior on both Mac/Firefox and WinXP/IE6.

Change History (0)

Note: See TracTickets for help on using tickets.