Ticket #7581: 7581.patch
File 7581.patch, 1.0 KB (added by , 12 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
129 129 { 130 130 // Otherwise, duplicate the previous block. 131 131 newBlock = previousBlock.clone(); 132 // Value attribute of list item should not be duplicated (#7330).133 newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' );134 132 } 135 133 } 136 134 else if ( nextBlock ) … … 180 178 if ( !newBlock.getParent() ) 181 179 range.insertNode( newBlock ); 182 180 181 // list item start number should not be duplicated (#7330), but we need 182 // to remove the attribute after it's onto the DOM tree because of old IEs (#7581). 183 newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' ); 184 183 185 // This is tricky, but to make the new block visible correctly 184 186 // we must select it. 185 187 // The previousBlock check has been included because it may be