narrow down the browser detect
This commit is contained in:
parent
c16ed6ca8e
commit
47390c5d6e
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@
|
|||
|
||||
YAHOO.widget.CodeEditor.prototype._cleanIncomingHTML = function(str) {
|
||||
// before <br> for IE7 so lines show up correctly
|
||||
str = str.replace(/\r?\n/g, " <br>");
|
||||
if ( this.browser.ie && this.browser.ie <= 7 ) {
|
||||
str = str.replace(/\r?\n/g, " <br>");
|
||||
}
|
||||
return str;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue