Fix handling of newlines in textarea input
This commit is contained in:

committed by
vitalets

parent
19f227f83c
commit
1159e26e34
@ -58,7 +58,7 @@ $(function () {
|
||||
})
|
||||
|
||||
asyncTest("should replace <br> with newline (on show) and back (on save)", function () {
|
||||
var v = '12<br>3<i>4<br />56',
|
||||
var v = '12<br>\n3<i>4<br />56',
|
||||
e = $('<a href="#" data-type="textarea" data-pk="1" data-url="post.php">'+v+'</a>').appendTo(fx).editable(),
|
||||
v1 = '12\n3<i>4\n56',
|
||||
vnew = "12\n3<b>4\n56\n\n78",
|
||||
|
Reference in New Issue
Block a user