From 779f27dce0275403bf04b1ce225bd389991d283b Mon Sep 17 00:00:00 2001 From: kmsheng Date: Thu, 3 Jan 2013 18:13:34 +0800 Subject: [PATCH] fix ie8 newline issue --- src/js/bootstrap-editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-editable.js b/src/js/bootstrap-editable.js index 0090cc4..c5b835d 100644 --- a/src/js/bootstrap-editable.js +++ b/src/js/bootstrap-editable.js @@ -757,7 +757,7 @@ this.$input.focus(); }, setValueByText:function () { - var lines = this.$element.html().split(//i); + var lines = this.$element.html().split("\n"); for (var i = 0; i < lines.length; i++) { lines[i] = $('
').html(lines[i]).text(); }