JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / core / dom / node.js
index a106810..ef41e06 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
@@ -664,13 +664,13 @@ CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype,
                 * @since 3.5\r
                 * @example\r
                 * // For the following HTML:\r
-                * // <div contenteditable="false">Some <b>text</b></div>\r
+                * // &lt;div contenteditable="false"&gt;Some &lt;b&gt;text&lt;/b&gt;&lt;/div&gt;\r
                 *\r
-                * // If "ele" is the above <div>\r
-                * ele.getReadOnlyRoot();  // the <div> element\r
+                * // If "ele" is the above &lt;div&gt;\r
+                * ele.isReadOnly();  // the &lt;div&gt; element\r
                 *\r
-                * // If "ele" is the above <b>\r
-                * ele.getReadOnlyRoot();  // the <div> element\r
+                * // If "ele" is the above &lt;b&gt;\r
+                * ele.isReadOnly();  // the &lt;div&gt; element\r
                 */\r
                isReadOnly : function()\r
                {\r
@@ -679,7 +679,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype,
                        {\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