This is a migrated thread and some comments may be shown as answers.

Firefox: Corrupted table structure after paste operation

1 Answer 17 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 20 Aug 2008, 04:22 PM

I have a problems when I paste part of table, copied from RadEditor.
1. In empty RadEditor create new table.
2. Select several cells from it (not all table).
3. Copy selected cells and past them at any place of RadEditor outside source table.
Result: New table has such structure:

<table> 
    <tr> 
        <tr> 
            <td>text</td> 
            <td>text</td> 
        </tr> 
        <tr> 
            <td>text</td> 
            <td>text</td> 
        </tr> 
    </tr> 
</table> 
 

4. Switch editor to HTML Mode and back to Edit Mode.
Result: Table structure has changed:

<table> 
    <tr> </tr>  
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
</table> 

Both results are wrong. FireFox cannot properly draw such tables.

Expected result:

<table> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
    <tr> 
        <td>text</td> 
        <td>text</td> 
    </tr> 
</table> 

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 25 Aug 2008, 01:54 PM
Hi Dmitry,

The observed behavior is related to the browser itself, not to the editor. We do not control the Copy/Paste commands - they are based on the browser and due to this, we cannot do anything about this issue. The problem can also be reproduced and with any other DHTML editor. What we suggest is to copy the desired code in HTML mode, or to copy the whole table.

Kind regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Dmitry
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or