Ticket #5595: 5595.patch

File 5595.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/htmlwriter/plugin.js

     
    9999                // Disable indentation on <pre>.
    100100                this.setRules( 'pre',
    101101                        {
     102                          breakAfterOpen : false,
    102103                          indent: false
    103104                        });
    104105        },
  • _source/core/dom/element.js

     
    333333                {
    334334                        var retval = this.$.innerHTML;
    335335                        // Strip <?xml:namespace> tags in IE. (#3341).
    336                         return CKEDITOR.env.ie ? retval.replace( /<\?[^>]*>/g, '' ) : retval;
     336                        retval = CKEDITOR.env.ie ? retval.replace( /<\?[^>]*>/g, '' ) : retval;
     337                        // Browsers strip leading space inside <pre>,
     338                        // compensate it even it's no there originally,
     339                        // it will not have any visual impact. (#5595)
     340                        return retval.replace( /<pre>/gi, '$&\n' );
    337341                },
    338342
    339343                getOuterHtml : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy