fix line breaks for IE6
This commit is contained in:
parent
f240635a3d
commit
8d4a63b774
1 changed files with 8 additions and 3 deletions
|
|
@ -416,8 +416,8 @@
|
|||
str = str.replace(/{/gi, 'RIGHT_BRACKET');
|
||||
str = str.replace(/}/gi, 'LEFT_BRACKET');
|
||||
|
||||
// before <br> for IE8 so lines show up correctly
|
||||
if ( this.browser.ie && this.browser.ie <= 8 ) {
|
||||
// before <br> for IE6 so lines show up correctly
|
||||
if ( this.browser.ie && this.browser.ie <= 6 ) {
|
||||
str = str.replace(/\r?\n/g, " <br>");
|
||||
}
|
||||
|
||||
|
|
@ -574,7 +574,12 @@
|
|||
var html = this.getEditorText();
|
||||
|
||||
// Fix line breaks
|
||||
html = html.replace( /\n/g, "<br>");
|
||||
if ( this.browser.ie <= 6 ) {
|
||||
html = html.replace( /\n/g, " <br>" );
|
||||
}
|
||||
else {
|
||||
html = html.replace( /\n/g, "<br>");
|
||||
}
|
||||
html = html.replace( /\t/g, " " );
|
||||
|
||||
// Apply new highlighting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue