X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fplugin.js;h=301cb27d0331657f351433f44294118b2ee67fa6;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=9f5ca9d94b09d28a15997e9302a9702dcf2b7543;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/table/plugin.js b/_source/plugins/table/plugin.js index 9f5ca9d..301cb27 100644 --- a/_source/plugins/table/plugin.js +++ b/_source/plugins/table/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -58,10 +58,10 @@ CKEDITOR.plugins.add( 'table', { editor.contextMenu.addListener( function( element, selection ) { - if ( !element || element.isReadOnly()) + if ( !element || element.isReadOnly() ) return null; - var isTable = element.is( 'table' ) || element.hasAscendant( 'table' ); + var isTable = element.hasAscendant( 'table', 1 ); if ( isTable ) {