Ticket #7467: 7467.patch

File 7467.patch, 854 bytes (added by Garry Yao, 14 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 ended with block element and doesn't have bogus yet. (#7467)
     373                        if ( pathBlock && !( lastNode && lastNode.isBlockBoundary() ) && !pathBlock.getBogus() )
    371374                        {
    372375                                editor.fire( 'updateSnapshot' );
    373376                                restoreDirty( editor );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy