X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fplugin.js;h=154080f63d0e974ec1d818e7143027c1ab64f53c;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=9f5ca9d94b09d28a15997e9302a9702dcf2b7543;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/table/plugin.js b/_source/plugins/table/plugin.js index 9f5ca9d..154080f 100644 --- a/_source/plugins/table/plugin.js +++ b/_source/plugins/table/plugin.js @@ -1,10 +1,11 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'table', { + requires : [ 'dialog' ], init : function( editor ) { var table = CKEDITOR.plugins.table, @@ -58,10 +59,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 ) {