Ticket #7221: 7221_2.patch

File 7221_2.patch, 884 bytes (added by Garry Yao, 9 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    365365                        var pathBlock = path.block || path.blockLimit,
    366366                                lastNode = pathBlock && pathBlock.getLast( isNotEmpty );
    367367
    368                         // In case it's not ended with block element and doesn't have bogus yet. (#7467)
     368                        // Check some specialities of the current path block:
     369                        // 1. It is really displayed as block; (#7221)
     370                        // 2. It doesn't end with one inner block; (#7467)
     371                        // 3. It doesn't have bogus br yet.
    369372                        if ( pathBlock
     373                                        && pathBlock.isBlockBoundary()
    370374                                        && !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() )
    371375                                        && !pathBlock.is( 'pre' )
    372376                                        && !pathBlock.getBogus() )
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy