Ticket #6027: 6027_2.patch

File 6027_2.patch, 742 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/table/dialogs/table.js

     
    8888
    8989                                if ( command == 'tableProperties' )
    9090                                {
    91                                         if ( ( selectedTable = editor.getSelection().getSelectedElement() ) )
    92                                         {
    93                                                 if ( selectedTable.getName() != 'table' )
    94                                                         selectedTable = null;
    95                                         }
     91                                        if ( ( selectedTable = selection.getSelectedElement() ) )
     92                                                selectedTable = selectedTable.getAscendant( 'table', true );
    9693                                        else if ( ranges.length > 0 )
    9794                                        {
    9895                                                // Webkit could report the following range on cell selection (#4948):
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy