Ticket #7354: 7354_2.patch
File 7354_2.patch, 1.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
48 48 path = new CKEDITOR.dom.elementPath( range.startContainer ), 49 49 block = path.block; 50 50 51 // Exit the list when we're inside an empty list item block. (#5376)52 51 if ( atBlockStart && atBlockEnd ) 53 52 { 53 // Exit the list when we're inside an empty list item block. (#5376) 54 54 if ( block && ( block.is( 'li' ) || block.getParent().is( 'li' ) ) ) 55 55 { 56 56 editor.execCommand( 'outdent' ); 57 57 return; 58 58 } 59 60 if ( block && block.getParent().is( 'blockquote' ) ) 61 { 62 block.breakParent( block.getParent() ); 63 64 // If we were at the start of <blockquote>, there will be an empty element before it now. 65 if ( !block.getPrevious().getFirst( CKEDITOR.dom.walker.invisible(1) ) ) 66 block.getPrevious().remove(); 67 68 // If we were at the end of <blockquote>, there will be an empty element after it now. 69 if ( !block.getNext().getFirst( CKEDITOR.dom.walker.invisible(1) ) ) 70 block.getNext().remove(); 71 72 range.moveToElementEditStart( block ); 73 range.select(); 74 return; 75 } 59 76 } 60 77 // Don't split <pre> if we're in the middle of it, act as shift enter key. 61 78 else if ( block && block.is( 'pre' ) )