X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fdom%2Fnode.js;h=ef41e06bafb09cd617ac9aac2c28cfc6f6e50cee;hb=refs%2Ftags%2Fv3.5.1;hp=a106810f326d23e588a218fdd97c1be1b0a2ea11;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_source/core/dom/node.js b/_source/core/dom/node.js index a106810..ef41e06 100644 --- a/_source/core/dom/node.js +++ b/_source/core/dom/node.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -664,13 +664,13 @@ CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype, * @since 3.5 * @example * // For the following HTML: - * //
Some text
+ * // <div contenteditable="false">Some <b>text</b></div> * - * // If "ele" is the above
- * ele.getReadOnlyRoot(); // the
element + * // If "ele" is the above <div> + * ele.isReadOnly(); // the <div> element * - * // If "ele" is the above - * ele.getReadOnlyRoot(); // the
element + * // If "ele" is the above <b> + * ele.isReadOnly(); // the <div> element */ isReadOnly : function() { @@ -679,7 +679,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype, { if ( current.type == CKEDITOR.NODE_ELEMENT ) { - if ( current.is( 'body' ) || current.getCustomData( '_cke_notReadOnly' ) ) + if ( current.is( 'body' ) || !!current.data( 'cke-editable' ) ) break; if ( current.getAttribute( 'contentEditable' ) == 'false' )