Ticket #3875: 3875_2.patch

File 3875_2.patch, 908 bytes (added by Martin Kou, 15 years ago)
  • _source/plugins/tabletools/plugin.js

     
    676676                                                if ( !element )
    677677                                                        return null;
    678678
    679                                                 if ( element.getName() in contextMenuTags && element.hasAscendant( 'table' ) )
     679                                                while ( element )
    680680                                                {
    681                                                         return {
    682                                                                 tablecell : CKEDITOR.TRISTATE_OFF,
    683                                                                 tablerow : CKEDITOR.TRISTATE_OFF,
    684                                                                 tablecolumn : CKEDITOR.TRISTATE_OFF
    685                                                         };
     681                                                        if ( element.getName() in contextMenuTags )
     682                                                        {
     683                                                                return {
     684                                                                        tablecell : CKEDITOR.TRISTATE_OFF,
     685                                                                        tablerow : CKEDITOR.TRISTATE_OFF,
     686                                                                        tablecolumn : CKEDITOR.TRISTATE_OFF
     687                                                                };
     688                                                        }
     689                                                        element = element.getParent();
    686690                                                }
    687691
    688692                                                return null;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy