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.4b
[ckeditor.git]
/
_source
/
plugins
/
image
/
plugin.js
diff --git
a/_source/plugins/image/plugin.js
b/_source/plugins/image/plugin.js
index
4c709b2
..
6757aa3
100644
(file)
--- a/
_source/plugins/image/plugin.js
+++ b/
_source/plugins/image/plugin.js
@@
-53,7
+53,7
@@
CKEDITOR.plugins.add( 'image',
{
\r
editor.contextMenu.addListener( function( element, selection )
\r
{
\r
{
\r
editor.contextMenu.addListener( function( element, selection )
\r
{
\r
- if ( !element || !element.is( 'img' ) || element.getAttribute( '_cke_realelement' ) )
\r
+ if ( !element || !element.is( 'img' ) || element.getAttribute( '_cke_realelement' ) || element.isReadOnly() )
\r
return null;
\r
\r
return { image : CKEDITOR.TRISTATE_OFF };
\r
return null;
\r
\r
return { image : CKEDITOR.TRISTATE_OFF };
\r