Ticket #8675: 8675.patch

File 8675.patch, 1.0 KB (added by Jakub Ś, 12 years ago)

This one should be easier to apply

  • _source/plugins/tabletools/plugin.js

     
    6060                                        // So we have to take care to include a td we've entered only when we've
    6161                                        // walked into its children.
    6262
    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                                                }
    6870                                        }
    6971                                }
    7072                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy