Opened 13 years ago

Last modified 12 years ago

#7846 confirmed Bug

Opera : Copying and pasting tables not working properly. (CORE-41467)

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IBM Cc: Damian, James Cunningham, Teresa Monahan, Hallvord R. M. Steen (Opera Software)

Description

To reproduce the defect:

  1. Open CK Editor, insert a table and enter data in all table cells.
  1. keep cursor in first table cell and select the text in all table cells using mouse or key board and press Ctrl + C
  1. keep cursor in the paragraph after the table and press Ctrl + v.

Expected Result: A new table is pasted which has same no of rows and Columns as the table inserted in step 1.

Actual Result: Data in all table cells are pasted but not as table. when we keep cursor in the pasted data Element path bar shows tr and td tags but no table tag.

when we go back to source view and come back to Rich Text it will combine all the pasted data as single paragraph.

Change History (8)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.0

This has been true from version 3.0, but only form version 3.5.1 pasted text has been changed to single paragraph.

Till version 3.5 (inclusive) each table row was converted to a pair of paragraphs: an empty one and a paragraph with text.

<p>&nbsp;</p>
<p>ee</p>
<p>&nbsp;</p>
<p>ee</p>

comment:2 Changed 13 years ago by Jakub Ś

Probably Opera doesn't see table tags as selected.

Till version 3.2 if using mouse, you have selected table contents plus you have went down with a cursor below the table, the whole table got pasted on CRTL+V

Also when you click on a border the whole table gets selected and copied on CRTL+C.

comment:3 Changed 13 years ago by Jakub Ś

Looks to me like this issue has something in common with #8269

comment:4 Changed 13 years ago by Frederico Caldeira Knabben

Cc: Hallvord R. M. Steen (Opera Software) added

comment:5 Changed 12 years ago by Hallvord R. M. Steen (Opera Software)

Summary: Opera : Copying and pasting tables not working properly.Opera : Copying and pasting tables not working properly. (CORE-41467)

reported as CORE-41467 on Opera's side

comment:6 Changed 12 years ago by Teresa Monahan

Copying and Pasting tables seems to be working correctly in Opera 11.60. However a new issue has been introduced. If you only select some table cells e.g. a table row, and then copy and paste this into a different table cell, the content is pasted as text, rather than as table cells.

To Reproduce:
Select a table row in CKEditor by clicking <tr> on the elements path bar.
Use Ctrl+C to copy the row and then move the cursor to a different table cell.
Use Ctrl+V to paste the table row.
Problem: The content is just pasted as text instead of within <td> tags.

The html content detected on the editor's paste event is simply the text within the selection. In Opera 11.52, the <td> tags were also included in the html for the pasted content.

comment:7 Changed 12 years ago by Jakub Ś

I was still able to reproduce original issue. No matter whether I used CRTL+A, selected whole text with a mouse or clicked table element on elements path, the table is always pasted as text.

The only way to copy the whole table is clicking on it's border and press CRTL+C.


About new issue:

  1. Go to ajax sample and create table as presented below (do not copy the code)
    <table border="1" cellpadding="1" cellspacing="1" style="width: 500px">
    	<tbody>
    		<tr>
    			<td>
    				a</td>
    			<td>
    				a</td>
    		</tr>
    		<tr>
    			<td>
    				a</td>
    			<td>
    				aa</td>
    		</tr>
    		<tr>
    			<td>
    				a</td>
    			<td>
    				a</td>
    		</tr>
    	</tbody>
    </table>
    
  2. Switch to WYSIWYG
  3. Go to third row and select this row either by clicking on 'tr' in elements path or with a mouse

First problem: It is impossible to select any other row than first using elements path.

  1. After you have copied the third row with a mouse go to second row to cell 2.2 and paste the contents as shown aa^

Second problem: Elements from third row get pasted in first row as text.

  1. Copy the third row once more with a mouse go to second row to cell 2.2 and paste the contents as shown a^a

Third problem: This result is most valid from all presented here as contents get pasted in correct row but still contents are pasted as text and not as table row.

comment:8 Changed 12 years ago by Jakub Ś

#8269 has been marked as duplicate

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy