Ticket #2403: userpatch_2403.patch

File userpatch_2403.patch, 893 bytes (added by Wojciech Olchawa, 16 years ago)
  • editor/_source/classes/fckenterkey.js

     
    483483
    484484                                // If is a header tag, or we are in a Shift+Enter (#77),
    485485                                // 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' ) )
    487487                                {
    488488                                        // Otherwise, duplicate the previous block.
    489489                                        eNewBlock = FCKDomTools.CloneElement( ePreviousBlock ) ;
    490490                                }
    491491                        }
    492                         else if ( eNextBlock )
     492                        else if ( eNextBlock && !FCKEditor.ForceEnterMode )
    493493                                eNewBlock = FCKDomTools.CloneElement( eNextBlock ) ;
    494494
    495495                        if ( !eNewBlock )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy