Index: _source/plugins/tabletools/plugin.js =================================================================== --- _source/plugins/tabletools/plugin.js (revision 3774) +++ _source/plugins/tabletools/plugin.js Fri Jun 26 11:03:04 CEST 2009 @@ -416,6 +416,8 @@ } } + var contextMenuTags = { thead : 1, tbody : 1, tfoot : 1, td : 1, tr : 1, th : 1 }; + CKEDITOR.plugins.tabletools = { init : function( editor ) @@ -673,18 +675,16 @@ if ( !element ) return null; - var isCell = !element.is( 'table' ) && element.hasAscendant( 'table' ) ; - - if ( isCell ) + if ( element.getName() in contextMenuTags && element.hasAscendant( 'table' ) ) - { - return { - tablecell : CKEDITOR.TRISTATE_OFF, - tablerow : CKEDITOR.TRISTATE_OFF, - tablecolumn : CKEDITOR.TRISTATE_OFF - }; - } + { + return { + tablecell : CKEDITOR.TRISTATE_OFF, + tablerow : CKEDITOR.TRISTATE_OFF, + tablecolumn : CKEDITOR.TRISTATE_OFF + }; + } - return null; + return null; } ); } }, Index: CHANGES.html =================================================================== --- CHANGES.html (revision 3775) +++ CHANGES.html Fri Jun 26 08:17:27 CEST 2009 @@ -44,6 +44,7 @@
Fixed issues: