diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 44e4ff560..8be20ad0e 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -125,6 +125,7 @@ class App.Utils child = el.firstChild break if !child break if child.nodeType isnt 1 || child.tagName isnt 'BR' + break if !child.remove child.remove() loop @@ -133,6 +134,7 @@ class App.Utils child = el.lastChild break if !child break if child.nodeType isnt 1 || child.tagName isnt 'BR' + break if !child.remove child.remove() # true|false = App.Utils.htmlLastLineEmpty(element)