Ticket #4774: 4774.patch
File 4774.patch, 1.0 KB (added by , 14 years ago) |
---|
-
_source/core/dom/range.js
1458 1458 } 1459 1459 else 1460 1460 { 1461 this.splitElement( startBlock );1461 endBlock = this.splitElement( startBlock ); 1462 1462 // In Gecko, the last child node must be a bogus <br>. 1463 1463 // Note: bogus <br> added under <ul> or <ol> would cause 1464 1464 // lists to be incorrectly rendered. … … 1481 1481 * place the caret between the two result branches. 1482 1482 * Note: The range must be collapsed and been enclosed by this element. 1483 1483 * @param {CKEDITOR.dom.element} element 1484 * @return {CKEDITOR.dom.element} Root element of the new branch after the split. 1484 1485 */ 1485 1486 splitElement : function( toSplit ) 1486 1487 { … … 1499 1500 documentFragment.appendTo( clone ); 1500 1501 clone.insertAfter( toSplit ); 1501 1502 this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END ); 1503 return clone; 1502 1504 }, 1503 1505 1504 1506 /**