Ticket #4971: 4791.patch
File 4791.patch, 740 bytes (added by , 14 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
21 21 { 22 22 enterBlock : function( editor, mode, range, forceMode ) 23 23 { 24 var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() ); 25 26 var startBlock = elementPath.block, 27 startBlockTag = startBlock && elementPath.block.getName(); 28 if ( forceMode && startBlockTag == 'li' ) 29 { 30 enterBr( editor, mode, range, forceMode ); 31 return; 32 } 33 24 34 // Get the range for the current selection. 25 35 range = range || getRange( editor ); 26 36