WordPress.org

Make WordPress Core

Opened 7 years ago

Last modified 6 years ago

#3492 closed defect (bug)

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

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

Description (last modified by foolswisdom)

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 (1)

comment:1 foolswisdom7 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.