Ticket #6263: 6263.patch

File 6263.patch, 776 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _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.getParent();
    64                                         if ( parent && cellNodeRegex.test( parent.getName() ) && !parent.getCustomData( 'selected_cell' ) )
     63                                        var parent = node.getAscendant( 'td' ) || node.getAscendant( 'th' );
     64                                        if ( parent && !parent.getCustomData( 'selected_cell' ) )
    6565                                        {
    6666                                                CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true );
    6767                                                retval.push( parent );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy