Ticket #2403: userpatch_2403.patch
File userpatch_2403.patch, 893 bytes (added by , 16 years ago) |
---|
-
editor/_source/classes/fckenterkey.js
483 483 484 484 // If is a header tag, or we are in a Shift+Enter (#77), 485 485 // create a new block element (later in the code). 486 if ( !this._HasShift && !(/^H[1-6]$/).test( sPreviousBlockTag ) )486 if ( !this._HasShift && !(/^H[1-6]$/).test( sPreviousBlockTag ) && ( !FCKEditor.ForceEnterMode || sPreviousBlockTag == 'LI' ) ) 487 487 { 488 488 // Otherwise, duplicate the previous block. 489 489 eNewBlock = FCKDomTools.CloneElement( ePreviousBlock ) ; 490 490 } 491 491 } 492 else if ( eNextBlock )492 else if ( eNextBlock && !FCKEditor.ForceEnterMode ) 493 493 eNewBlock = FCKDomTools.CloneElement( eNextBlock ) ; 494 494 495 495 if ( !eNewBlock )