Ticket #7354: 7354.patch
File 7354.patch, 1.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
62 62 63 63 var node; 64 64 65 // If this is a block under a list item , split it as well. (#1647)65 // If this is a block under a list item or blockquote, split it as well. (#1647) 66 66 if ( nextBlock ) 67 67 { 68 68 node = nextBlock.getParent(); 69 if ( node.is( 'li' ) )69 if ( node.is( 'li', 'blockquote' ) ) 70 70 { 71 71 nextBlock.breakParent( node ); 72 72 nextBlock.move( nextBlock.getNext(), 1 ); 73 73 } 74 // Put the caret between the splitted nodes 75 if ( node.is( 'blockquote' ) ) 76 { 77 var block = doc.createElement( blockTag ); 78 block.insertBefore( nextBlock.getParent() ); 79 if ( !CKEDITOR.env.ie ) 80 block.appendBogus(); 81 nextBlock = block; 82 } 74 83 } 75 84 else if ( previousBlock && ( node = previousBlock.getParent() ) && node.is( 'li' ) ) 76 85 {