X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fplugin.js;h=def36a736e32bf3bd720e0e720b1dfe5eccd911f;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=d1c60a8b6c699e7ece9414cdead5336be59e864d;hpb=f8fc585c18d287eb325c575596d183122486b641;p=ckeditor.git diff --git a/_source/plugins/table/plugin.js b/_source/plugins/table/plugin.js index d1c60a8..def36a7 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-2012, 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 ) + if ( !element || element.isReadOnly() ) return null; - var isTable = element.is( 'table' ) || element.hasAscendant( 'table' ); + var isTable = element.hasAscendant( 'table', 1 ); if ( isTable ) {