Ticket #5465: 5465.patch
File 5465.patch, 719 bytes (added by , 14 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
100 100 // Do not enter this block if it's a header tag, or we are in 101 101 // a Shift+Enter (#77). Create a new block element instead 102 102 // (later in the code). 103 if ( !forceMode && !headerTagRegex.test( previousBlock.getName() ) ) 103 if ( previousBlock.is( 'li' ) || 104 !( forceMode || headerTagRegex.test( previousBlock.getName() ) ) ) 104 105 { 105 106 // Otherwise, duplicate the previous block. 106 107 newBlock = previousBlock.clone();