/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
CKEDITOR.plugins.add( 'table',\r
{\r
+ requires : [ 'dialog' ],\r
init : function( editor )\r
{\r
var table = CKEDITOR.plugins.table,\r
{\r
editor.contextMenu.addListener( function( element, selection )\r
{\r
- if ( !element || element.isReadOnly())\r
+ if ( !element || element.isReadOnly() )\r
return null;\r
\r
- var isTable = element.is( 'table' ) || element.hasAscendant( 'table' );\r
+ var isTable = element.hasAscendant( 'table', 1 );\r
\r
if ( isTable )\r
{\r