diff --git a/_source/plugins/tabletools/plugin.js b/_source/plugins/tabletools/plugin.js
a
|
b
|
|
1 | | /* |
| 1 | /* |
2 | 2 | Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. |
3 | 3 | For licensing, see LICENSE.html or http://ckeditor.com/license |
4 | 4 | */ |
… |
… |
For licensing, see LICENSE.html or http://ckeditor.com/license |
60 | 60 | // So we have to take care to include a td we've entered only when we've |
61 | 61 | // walked into its children. |
62 | 62 | |
63 | | var parent = node.getAscendant( 'td' ) || node.getAscendant( 'th' ); |
64 | | if ( parent && !parent.getCustomData( 'selected_cell' ) ) |
65 | | { |
66 | | CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true ); |
67 | | retval.push( parent ); |
| 63 | if( !( node instanceof CKEDITOR.dom.element && node.is( 'tr', 'thead', 'tfoot', 'tbody', 'table' ))) { |
| 64 | var parent = node.getAscendant( 'td', true ) || node.getAscendant( 'th', true ); |
| 65 | if ( parent && !parent.getCustomData( 'selected_cell' ) ) |
| 66 | { |
| 67 | CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true ); |
| 68 | retval.push( parent ); |
| 69 | } |
68 | 70 | } |
69 | 71 | } |
70 | 72 | } |