JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / plugins / scayt / plugin.js
index 0f3f339..5a03d5b 100644 (file)
@@ -1,5 +1,5 @@
 /*\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
@@ -626,7 +626,7 @@ CKEDITOR.plugins.scayt =
                                editor.contextMenu.addListener( function( element, selection )\r
                                        {\r
                                                if ( !plugin.isScaytEnabled( editor )\r
-                                                               || selection.getCommonAncestor().isReadOnly() )\r
+                                                               || selection.getRanges()[ 0 ].checkReadOnly() )\r
                                                        return null;\r
 \r
                                                var scayt_control = plugin.getScayt( editor ),\r