Ticket #7467: 7467_2.patch

File 7467_2.patch, 918 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    366366                        activateEditing( editor );
    367367
    368368                        // Ensure bogus br could help to move cursor (out of styles) to the end of block. (#7041)
    369                         var pathBlock = path.block || path.blockLimit;
    370                         if ( pathBlock && !pathBlock.getBogus() )
     369                        var pathBlock = path.block || path.blockLimit,
     370                                lastNode = pathBlock && pathBlock.getLast( isNotEmpty );
     371
     372                        // In case it's not a pre-formatted block, not ended with a block element and doesn't have a bogus yet. (#7467)
     373                        if ( pathBlock && !( lastNode && lastNode.isBlockBoundary() )
     374                                        && !pathBlock.is( 'pre' ) && !pathBlock.getBogus() )
    371375                        {
    372376                                editor.fire( 'updateSnapshot' );
    373377                                restoreDirty( editor );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy