/*\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
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