Ticket #3422: 3422.patch

File 3422.patch, 713 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/domiterator/plugin.js

     
    323323                        {
    324324                                var lastChild = block.getLast();
    325325                                if ( lastChild && lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.getName() == 'br' )
    326                                         lastChild.remove();
     326                                {
     327                                        // Take care not to remove the block expanding <br> in non-IE browsers.
     328                                        if ( CKEDITOR.env.ie || lastChild.getPrevious() || lastChild.getNext() )
     329                                                lastChild.remove();
     330                                }
    327331                        }
    328332
    329333                        // Get a reference for the next element. This is important because the
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy