Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.5.3
[ckeditor.git]
/
_source
/
plugins
/
table
/
plugin.js
diff --git
a/_source/plugins/table/plugin.js
b/_source/plugins/table/plugin.js
index
d1c60a8
..
301cb27
100644
(file)
--- a/
_source/plugins/table/plugin.js
+++ b/
_source/plugins/table/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-58,10
+58,10
@@
CKEDITOR.plugins.add( 'table',
{
\r
editor.contextMenu.addListener( function( element, selection )
\r
{
\r
{
\r
editor.contextMenu.addListener( function( element, selection )
\r
{
\r
- if ( !element )
\r
+ if ( !element || element.isReadOnly() )
\r
return null;
\r
\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
\r
if ( isTable )
\r
{
\r