Ticket #6419: 6419_2.patch
File 6419_2.patch, 1.7 KB (added by , 13 years ago) |
---|
-
_source/core/dom/node.js
103 103 return element; 104 104 }, 105 105 106 /** 107 * Clone the node, including it's attributes and optionally, children. 108 * 109 * @param includeChildren 110 * @param cloneId Possible values are: 111 * 0|undefined|false Doesn't clone any ID or the internal cke_expando. 112 * 1|true Clones both IDs and the internal cke_expando. 113 * 2 Clones only IDs, not the internal cke_expando. 114 */ 106 115 clone : function( includeChildren, cloneId ) 107 116 { 108 117 var $clone = this.$.cloneNode( includeChildren ); 109 118 110 if ( !cloneId )119 if ( !cloneId || cloneId == 2 ) 111 120 { 112 121 var removeIds = function( node ) 113 122 { 114 123 if ( node.nodeType != CKEDITOR.NODE_ELEMENT ) 115 124 return; 116 125 117 node.removeAttribute( 'id', false ) ; 126 if ( cloneId != 2 ) 127 node.removeAttribute( 'id', false ) ; 118 128 node.removeAttribute( '_cke_expando', false ) ; 119 129 120 130 var childs = node.childNodes; -
_source/plugins/list/plugin.js
87 87 { 88 88 if ( !rootNode || listArray[ currentIndex ].parent.getName() != rootNode.getName() ) 89 89 { 90 rootNode = listArray[ currentIndex ].parent.clone( false, 1);90 rootNode = listArray[ currentIndex ].parent.clone( false, 2 ); 91 91 retval.append( rootNode ); 92 92 } 93 93 currentListItem = rootNode.append( item.element.clone( 0, 1 ) );