Opened 13 years ago
Last modified 9 years ago
#8957 confirmed Bug
Copy-paste of table rows does not work correctly
Reported by: | IBM_RQM | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | IBM | Cc: | satya_minnekanti@… |
Description
Scenario 1 -
- Create a table with 3 rows and 5 columns.
- Enter some data in each row and column.
- Add 2 more rows to the table.
- Select row 1 & 2, copy the text using ctrl+c.
- Now Select row 4 & 5 and paste the text using ctrl+v.
Actual Result: Row 4 & 5, will get merged as single row and Row 1 & 2 will be get pasted in a single row
Expected Result: The text in row 1 & 2 should be get copied to row 4 & 5 similar to what we see in ms-word
Scenario 2 -
- Perform the first 4 steps as mentioned in scenario 1
- Put the cursor in row 4 column 1
- Press ctrl+v to paste the text
Actual Result: Row 1 & 2 will be get copied in row 4 column 1.
Expected Result: The text in row 1 & 2 should be get copied to row 4 & 5 similar to what we see in ms-word
Scenario 3 -
- Perform the first 3 steps as mentioned in scenario 1
- Select any single cell (Say Row 1 column 1)
- Put the cursor in row 4 column 1
- Press ctrl+v to paste the text
Actual Result: The text in the selected column will be get pasted in row 4 column 1 along with column border.
Expected result: Only the text in a column should be pasted and not the column border
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | Table_Copy_Paste_Issues.jpg added |
---|
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.1 → 3.0 |
comment:2 Changed 13 years ago by
NOTE: bug reported by @satya #8588, at least in my opinion, suggests that IE, Webkit and Firefox work actually ok in scenario 3.
Taking the above behaviour into account, scenario 2 is also correct (except for Opera).
Again taking the above into account, scenario 1 for Firefox is correct but there are problems in Opera, IE and Webkit. For the last two probably separate tickets should be reported.
The above scenarios were made for Firefox but problem also exists in other browsers. Here are my findings:
Scenario 1 -
IE - It is not possible to paste content when multiple cells are selected in IE (no matter whether they are empty or not).
Firefox - Reproducible from CKEditor 3.1
Webkit - Reproducible from CKEditor 3.1 but two empty selected rows (4 and 5) are replaced with one created from pasted content (rows 1 and 2)
Opera - Contents are pasted as text into first cell selected. Already reported in #7846
Scenario 2 -
IE - Reproducible from CKEditor 3.0
Firefox - Reproducible from CKEditor 3.0
Webkit - Reproducible from CKEditor 3.0
Opera - Contents are pasted as text into first cell selected. Already reported in #7846
Scenario 3 -
IE, Firefox, Webkit - If you select only text it will work. If you select whole cell it will be pasted as new inner table. I know that this is not what MS Word does but IMO this is quite valid behaviour - you select text you get text, you select cell you get inner table. Any comments here anyone?
Opera - Because of pasting problems mentioned in #7846, this works as described in TC. As mentioned earlier I'm not sure if this should not work as in other browsers.