id summary reporter owner description type status priority milestone component version resolution keywords cc 6270 Chrome: Difficulties pasting tables from Excel Jude Allred "1. open an Excel 2007 spreadsheet 2. select some cells and hit ctrl+c 3. using chrome, go to http://ckeditor.com/demo 4. Paste the table into the editor using ctrl+v 5. right click on the newly-pasted table 6. [bug 1] the 'Table Properties' menu item is missing from the context menu. 7. view the source. [bug 2] Notice that the newly inserted table has each wrapped in a

, and there is no containing tag. 8. [bug 3] return to wysiwyg mode- the table no longer looks like a table. This is caused by Chrome failing to wrap the pasted HTML in a
tag. One workaround (which I'm currently using) is to use a special paste handler for Webkit: {{{ if (CKEDITOR.env.webkit) { editor.ck.on('paste', function(evt) { if (evt.data.html) { //If this html contains table elements if ($('tr:first, td:first, th:first', evt.data.html).length) { //...but does not contain any
tags if ($('table:first', evt.data.html).length === 0) { //Wrap it in a table. evt.data.html = $('
'). addClass(editor.ck.config.tableClass). append(evt.data.html)[0]. outerHTML; } } } }); } }}} " Bug closed Normal Core : Pasting 3.4 fixed Webkit Opera