Replace <br>s inserted by editing.
This commit is contained in:
parent
115a213b34
commit
e5e25c9a77
@ -61,6 +61,7 @@ Banner =
|
|||||||
return @blur() if !e.shiftKey and e.keyCode is 13
|
return @blur() if !e.shiftKey and e.keyCode is 13
|
||||||
|
|
||||||
blur: ->
|
blur: ->
|
||||||
|
$.replace br, $.tn('\n') for br in $$ 'br', @
|
||||||
if @textContent
|
if @textContent
|
||||||
@contentEditable = false
|
@contentEditable = false
|
||||||
Banner.db.set
|
Banner.db.set
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user