Opened 7 years ago

Closed 3 years ago

#9454 closed Bug (duplicate)

Appending a row to a table via TAB key incorrectly handles rowspan'd cells

Reported by: Vladimri S. Owned by:
Priority: Normal Milestone:
Component: Core : Tables Version: 3.4
Keywords: Cc:

Description

When cursor is in the last cell of a table (more that 1 column), pressing TAB appends new <tr></tr> element to the table, but does not fill it with the respective number of <td></td> elements, which visually results in creating a row with only one cell.

Change History (3)

comment:1 Changed 7 years ago by Vladimri S.

Summary: Uncertain behaviour of TAB key in tableAppending a row to a table via TAB key incorrectly handles rowspan'd cells

FIX: This bug appears only when the last row is broken apart by/is adjacent to a rowspan'd cell.

comment:2 Changed 7 years ago by Jakub Ś

Keywords: ui table keyboard shortcuts removed
Status: newconfirmed
Version: 3.6.43.4

Problem has been reproducible from CKEditor 3.4 (when creating new row with tab was introduced). It is also reproducible in CKEditor 4.x (v4)

To reproduce:

  1. Insert below code into Source and switch to WYSIWYG
    <table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
    	<tbody>
    		<tr>
    			<td>11</td>
    			<td>12</td>
    			<td>13</td>
    		</tr>
    		<tr>
    			<td>21</td>
    			<td>22</td>
    			<td>23</td>
    		</tr>
    		<tr>
    			<td>31</td>
    			<td>32</td>
    			<td>33</td>
    		</tr>
    	</tbody>
    </table>
    
  2. Put cursor in cell23 and merge down with cell 33
  3. Pressing tab in newly created cell will move you to cell 31, so either tab to cell 32 or click on it
  4. Press tab

Result: Row wit n-1 cell gets created (two in this case)

comment:3 Changed 3 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed

I'm closing this ticket in favour of #14632. The later mentions one more TC.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy