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
/
scayt
/
plugin.js
diff --git
a/_source/plugins/scayt/plugin.js
b/_source/plugins/scayt/plugin.js
index
671815b
..
8486ad9
100644
(file)
--- a/
_source/plugins/scayt/plugin.js
+++ b/
_source/plugins/scayt/plugin.js
@@
-624,9
+624,10
@@
CKEDITOR.plugins.scayt =
// If the "contextmenu" plugin is loaded, register the listeners.
\r
if ( editor.contextMenu && editor.addMenuItems )
\r
{
\r
// If the "contextmenu" plugin is loaded, register the listeners.
\r
if ( editor.contextMenu && editor.addMenuItems )
\r
{
\r
- editor.contextMenu.addListener( function( )
\r
+ editor.contextMenu.addListener( function( element, selection )
\r
{
\r
{
\r
- if ( !plugin.isScaytEnabled( editor ) )
\r
+ if ( !plugin.isScaytEnabled( editor )
\r
+ || selection.getCommonAncestor().isReadOnly() )
\r
return null;
\r
\r
var scayt_control = plugin.getScayt( editor ),
\r
return null;
\r
\r
var scayt_control = plugin.getScayt( editor ),
\r