Ticket #8939 (confirmed Bug)

Opened 3 years ago

Last modified 21 months ago

IE: Selecting a table row and pressing backspace only deletes a cell instead of the full row

Reported by: jamescun Owned by:
Priority: Normal Milestone:
Component: Core : Tables Version: 3.2.1
Keywords: IE IBM Cc: damo, satya, tmonahan

Description

Steps to reproduce the defect:

  1. Open the Ajax sample in IE.
  2. Create a new table with 3 rows and 3 columns.
  3. Click into any of the cells in the table.
  4. Click on tr in the elements path bar to select the entire table row.
  5. Now click backspace.

Expected result: The entire row is deleted. (behaviour in FF)

Actual result: Only 1 cell in the row is deleted.

Change History

comment:1 Changed 3 years ago by j.swiderski

  • Keywords IE added
  • Status changed from new to confirmed
  • Version changed from 3.6.4 (SVN - trunk) to 3.2.1

Reproducible in IE6-9 from CKEditor 3.2.1

NOTES: *before this version clicking on elements path and pressing backspace or delete had no result.

  • Funny thing is that same TC works with 3x2 table. Actually 3x3 is the only combination in which I was able to reproduce this.
Last edited 21 months ago by j.swiderski (previous) (diff)

comment:2 follow-up: ↓ 3 Changed 3 years ago by tmonahan

Selecting the table row using a mouse drag in other browsers results in the same behavior e.g. FF, Chrome. One one cell is deleted.

Also this usecase results in strange behavior in Opera - when you hit backspace, it looks like there is one cell left in the row. However when you click 'Remove Editor' or go to Source mode and then back to wysiwyg, you'll see that the entire row has been removed.

comment:3 in reply to: ↑ 2 Changed 21 months ago by tmonahan

Replying to tmonahan:

Selecting the table row using a mouse drag in other browsers results in the same behavior e.g. FF, Chrome. One one cell is deleted.

This behavior was introduced in FF by rev # [7243]. Prior to this, pressing delete or backspace on the selected row would remove the cell contents.

comment:4 Changed 21 months ago by j.swiderski

@tmonahan I wasn't able to reproduce this - in my case whole row was deleted (CKE 4.x and 3.6.6) - could you perhaps attach a screen cast for this problem in other browsers?

comment:5 Changed 21 months ago by tmonahan

@j.swiderski - To reproduce in FF you have to use the mouse to select the row.

Steps:

  1. Create a new table.
  2. Select the top row using the mouse.
  3. Press backspace or delete.

Only one table cell will be deleted. Before rev [7243], backspace or delete had no effect.

If you enter some content in the table before step 2, then pressing delete or backspace in step 3 should delete the contents from the table, but not remove the table row. This was the behavior in FF before rev [7243].

comment:6 Changed 21 months ago by tmonahan

I can not reproduce this in CKE 4.x but it is reproducible in 3.6.x builds since http://rev.ckeditor.com/ckeditor/trunk/7243/_samples/replacebyclass.html

comment:7 Changed 21 months ago by j.swiderski

@tmonahan issue can be reproduced in FF with mouse select and Opera where bug is visual (row gets deleted after switching to source and back). Chrome works fine.
This should be reported in separate issue however like you have mentioned issue is only reproducible in 3.x. builds and works in 4.x thus I'm not sure if it makes any sense to report it.

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