Open Bug 192295 Opened 22 years ago Updated 2 years ago

unable to delete pasted table

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect

Tracking

()

mozilla1.5beta

People

(Reporter: jud, Unassigned)

References

Details

(Keywords: topembed+, Whiteboard: EDITORBASE+,edt_x3,edt_b3,edt_c3)

Attachments

(1 file)

using commercial trunk Netscape build (2003020304). when I paste a simple table (2 cols 2 rows) from either Microsoft Excel, or from an HTML document, into an editor window (like composing a mail message) other than composer (which provides table UI), I am unable to delete the table itself. I am able to select all the cells (indicated by the cells shadowing) and subsequently delete all of their contents, however, I am unable to rid the document of the table structure itself. I would expect that dragging from before to after the table itself, and hitting delete, would remove the table from the document.
Whiteboard: EDITORBASE
Keywords: topembed
I actually expect to be able to delete it as well... is there a good reason why it works this way?
EDITORBASE+ but we really need a good test case here
Keywords: qawanted
QA Contact: sujay → beppe
Whiteboard: EDITORBASE → EDITORBASE+
I believe the confusion here is the grippy indicators, the user may believe the table is selected when the grippies are displayed. If you select the table, by clicking in a cell, or highlighting the grippies, and then select Table|Select|Table and hit delete - the table is indeed removed. Selecting the cells and hitting delete only deletes the content of the cells and does not delete the table. Steps: 1. open excel and create a 2x2 table, enter text in each cell 2. open a new composer window, enter a line of text 3. select the 2x2 table in excel, select copy and paste into the composer window 4. select the table - you should either see the cell grayed or the grippies. Hold the shift key down and select all cells - select delete. The content of the cells is deleted and not the table. 5. select undo to return the table to the original state. 6. click in the table, select Table|Select|Table and then select delete. Table is deleted
tested in an embedded app and when I pasted the excel data, selecting the table (gray borders) and hitting delete, did indeed delete the table. I did not use the table select option for this test.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
marking verified
Status: RESOLVED → VERIFIED
I am reopening this bug, I can now reproduce the issue that Jud mentions
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Attached file test case
Open the attached test case in Composer In the last column, select the column with the mouse and the use of the shift and ctrl keys (do not use menu items). Select delete. The contents of the cells should be deleted. Now, reselect the cells and try to delete the cells (without using the menu options). They just will not delete.
Keywords: topembedtopembed+
Whiteboard: EDITORBASE+ → EDITORBASE+,edt_x3,edt_b3,edt_c3
Nisheeth is this something you could help with?
Target Milestone: --- → mozilla1.4final
What should the correct behavior be? Should selecting all table cells and hitting backspace delete the table? (This is what MS-WORD does) Should selecting some table cells present a dialog which prompts the user to delete the cells or just their contents. currently, dragging over the table selects the entire table but does not show any visual indication. Selecting all cells in the table and hitting backspace deletes the cell's contents.
Target Milestone: mozilla1.4final → mozilla1.5beta
The bug as it was reported by Jud doesn't exist in the Windows debug 5-27 build I tested on. When I paste the table in the attached test case into the mail compose window, select the entire table, and hit delete or backspace, the entire table gets deleted. The issue that Beth is describing in comment 7 is different because it talks about deleting a column within a table. It is still possible to delete the column in the table using the right click menu or the main menu in Composer and only the main menu in the mail compose window. So, workarounds, admittedly pretty cumbersome, exist to delete columns within the table both in Composer and mail compose. Given this state of affairs, does this bug still rate as a topembed+? Just thought I'd make sure that this is important before I work more towards trying to fix it...
This is a user interface issue. I have encountered this myself and it is quite annoying. I had to look to this bug report to figure out how to delete a table. The problem is that the design of how to select objects and subobjects nested inside them was not carefully thought out. It is inconsistent and that leads to confusion for the user. Consistency is a pillar of good UI design. Once you have an object selected, you should be able to perform an operation on it like delete. An object can be a cell, a row, a column, a table, etc...
QA Contact: rubydoo123 → editor
Assignee: mozeditor → nobody
Status: REOPENED → NEW
Still unable to delete the cells from the testcase with DELETE key on 27.0a1 (2013-09-25).
Keywords: qawanted
Severity: normal → S3
See Also: → 1791358
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: