Replace <br>s inserted by editing.

This commit is contained in:
ccd0 2015-02-08 13:52:47 -08:00
parent 115a213b34
commit e5e25c9a77

View File

@ -61,6 +61,7 @@ Banner =
return @blur() if !e.shiftKey and e.keyCode is 13
blur: ->
$.replace br, $.tn('\n') for br in $$ 'br', @
if @textContent
@contentEditable = false
Banner.db.set