Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 4013)
+++ /CKEditor/trunk/CHANGES.html (revision 4014)
@@ -215,4 +215,5 @@
was being rendered improperly when loading an image with long URL.
#4144 : Fixed the white-spaces at the end of <pre> is incorrectly removed.
+ #4143 : Fixed element id is lost when extracting contents from the range.
Index: /CKEditor/trunk/_source/core/dom/range.js
===================================================================
--- /CKEditor/trunk/_source/core/dom/range.js (revision 4013)
+++ /CKEditor/trunk/_source/core/dom/range.js (revision 4014)
@@ -130,5 +130,5 @@
// 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();
@@ -174,5 +174,5 @@
// 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.