/*\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
* @since 3.5\r
* @example\r
* // For the following HTML:\r
- * // <div contenteditable="false">Some <b>text</b></div>\r
+ * // <div contenteditable="false">Some <b>text</b></div>\r
*\r
- * // If "ele" is the above <div>\r
- * ele.getReadOnlyRoot(); // the <div> element\r
+ * // If "ele" is the above <div>\r
+ * ele.isReadOnly(); // the <div> element\r
*\r
- * // If "ele" is the above <b>\r
- * ele.getReadOnlyRoot(); // the <div> element\r
+ * // If "ele" is the above <b>\r
+ * ele.isReadOnly(); // the <div> element\r
*/\r
isReadOnly : function()\r
{\r
{\r
if ( current.type == CKEDITOR.NODE_ELEMENT )\r
{\r
- if ( current.is( 'body' ) || current.getCustomData( '_cke_notReadOnly' ) )\r
+ if ( current.is( 'body' ) || !!current.data( 'cke-editable' ) )\r
break;\r
\r
if ( current.getAttribute( 'contentEditable' ) == 'false' )\r