Ticket #5789: 5789.patch
File 5789.patch, 1.9 KB (added by , 14 years ago) |
---|
-
_source/plugins/htmlwriter/plugin.js
99 99 // Disable indentation on <pre>. 100 100 this.setRules( 'pre', 101 101 { 102 indent: false 102 indent: false, 103 breakAfterOpen : false 103 104 }); 104 105 }, 105 106 -
_source/plugins/wysiwygarea/plugin.js
719 719 '</html>'; 720 720 } 721 721 722 // Compensate one leading line break for <pre> as browsers 723 // are ignoring the first line-break in front of it. (#5789) 724 data = data.replace( /(<pre>)(\r\n|\n)/g, '$1$2$2' ); 722 725 data += activationScript; 723 726 724 727 -
_source/plugins/htmldataprocessor/plugin.js
302 302 return html.replace( protectSelfClosingRegex, '<cke:$1$2></cke:$1>' ); 303 303 } 304 304 305 function protectPreFormatted( html ) 306 { 307 return html.replace( /(<pre>)(\r\n|\n)/g, '$1$2$2' ); 308 } 309 305 310 function protectRealComments( html ) 306 311 { 307 312 return html.replace( /<!--(?!{cke_protected})[\s\S]+?-->/g, function( match ) … … 422 427 // protecting them into open-close. (#3591) 423 428 data = protectSelfClosingElements( data ); 424 429 430 // Compensate one leading line break for <pre> as browsers 431 // are ignoring the first line-break in front of it. (#5789) 432 data = protectPreFormatted( data ); 433 425 434 // Call the browser to help us fixing a possibly invalid HTML 426 435 // structure. 427 436 var div = new CKEDITOR.dom.element( 'div' );