Ticket #5293: 5293.patch

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

     
    696696                                                                        docType = fullPage && editor.docType,
    697697                                                                        doc = iframe.getFrameDocument();
    698698
     699                                                                // BR at the end of document is mozilla editor bogus node (#5293).
     700                                                                if ( CKEDITOR.env.gecko )
     701                                                                {
     702                                                                        var last = doc.getBody().getLast();
     703                                                                        if ( last.type == CKEDITOR.NODE_ELEMENT && last.is( 'br' ) )
     704                                                                                last.remove();
     705                                                                }
     706
    699707                                                                var data = fullPage
    700708                                                                        ? doc.getDocumentElement().getOuterHtml()
    701709                                                                        : doc.getBody().getHtml();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy