Index: _source/tests/plugins/domiterator/domiterator.html
===================================================================
--- _source/tests/plugins/domiterator/domiterator.html (revision 3477)
+++ _source/tests/plugins/domiterator/domiterator.html Wed Jul 29 19:43:56 CST 2009
@@ -131,7 +131,7 @@
var range = new CKEDITOR.dom.range( doc );
range.setStartAt( doc.getById( 'iterTarget4a' ), CKEDITOR.POSITION_AFTER_START );
range.setEndAt( doc.getById( 'iterTarget4b' ), CKEDITOR.POSITION_BEFORE_END );
- assumeIterationSameAs( range, null, [ 'p', 'div' ] );
+ assumeIterationSameAs( range, null, [ 'p', 'p' ] );
assumeElementContentAreSame( 'iterContainer4', 'iterResult4' );
},
@@ -219,7 +219,7 @@
-
+
Index: _source/core/dom/range.js
===================================================================
--- _source/core/dom/range.js (revision 3950)
+++ _source/core/dom/range.js Wed Jul 29 19:35:50 CST 2009
@@ -129,7 +129,7 @@
// For Extract and Clone, we must clone this level.
if ( clone && !levelStartNode.equals( startNode ) ) // action = 0 = Delete
- levelClone = clone.append( levelStartNode.clone() );
+ levelClone = clone.append( levelStartNode.clone( false, action == 1 ) );
currentNode = levelStartNode.getNext();
@@ -173,7 +173,7 @@
// For Extract and Clone, we must clone this level.
if ( action > 0 && !levelStartNode.equals( endNode ) ) // action = 0 = Delete
- levelClone = clone.append( levelStartNode.clone() );
+ levelClone = clone.append( levelStartNode.clone( false, action == 1 ) );
// The processing of siblings may have already been done by the parent.
if ( !startParents[ k ] || levelStartNode.$.parentNode != startParents[ k ].$.parentNode )
Index: CHANGES.html
===================================================================
--- CHANGES.html (revision 4001)
+++ CHANGES.html Wed Jul 29 19:43:56 CST 2009
@@ -210,6 +210,8 @@
#4123 : Some dialog buttons were broken in IE7 quirks.
#4122 : [IE] The image dialog
was being rendered improperly when loading an image with long URL.
+ #4143 : Element id is lost
+ when extracting contents from the range.
CKEditor 3.0 RC