Ticket #6352: 6352.patch

File 6352.patch, 694 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    897897
    898898                                                                // Strip the last blank paragraph within document.
    899899                                                                if ( config.ignoreEmptyParagraph )
    900                                                                         data = data.replace( emptyParagraphRegexp, '' );
     900                                                                {
     901                                                                        // A new line character might be left in the document, remove it.
     902                                                                        if ( ( data = data.replace( emptyParagraphRegexp, '' ) ) == "\n" )
     903                                                                                data = '';
     904                                                                }
    901905
    902906                                                                if ( docType )
    903907                                                                        data = docType + '\n' + data;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy