- }\r
- else if ( previousBlock && ( node = previousBlock.getParent() ) && node.is( 'li' ) )\r
- {\r
- previousBlock.breakParent( node );\r
- range.moveToElementEditStart( previousBlock.getNext() );\r
- previousBlock.move( previousBlock.getPrevious() );\r
- }\r
-\r
- // If we have both the previous and next blocks, it means that the\r
- // boundaries were on separated blocks, or none of them where on the\r
- // block limits (start/end).\r
- if ( !isStartOfBlock && !isEndOfBlock )\r
- {\r
- // If the next block is an <li> with another list tree as the first\r
- // child, we'll need to append a placeholder or the list item\r
- // wouldn't be editable. (#1420)\r
- if ( nextBlock.is( 'li' ) && ( node = nextBlock.getFirst() )\r
- && node.is && node.is( 'ul', 'ol') )\r
- nextBlock.insertBefore( doc.createText( '\xa0' ), node );\r
-\r
- // Move the selection to the end block.\r
- if ( nextBlock )\r
- range.moveToElementEditStart( nextBlock );\r
- }\r
- else\r
- {\r