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] = $('