X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Fscayt%2Fplugin.js;h=8486ad9e36aafb84a2b942663e6699bc2bb1ee3c;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=671815b75f439209e754e4f913068432f3ab54b1;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/plugins/scayt/plugin.js b/_source/plugins/scayt/plugin.js index 671815b..8486ad9 100644 --- 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. if ( editor.contextMenu && editor.addMenuItems ) { - editor.contextMenu.addListener( function( ) + editor.contextMenu.addListener( function( element, selection ) { - if ( !plugin.isScaytEnabled( editor ) ) + if ( !plugin.isScaytEnabled( editor ) + || selection.getCommonAncestor().isReadOnly() ) return null; var scayt_control = plugin.getScayt( editor ),