remove single space hack

This commit is contained in:
Evan Morikawa 2015-03-05 13:33:50 -08:00
parent 4af00cfaf4
commit d1b3b83e38

View file

@ -86,7 +86,6 @@ ContenteditableComponent = React.createClass
__html: @_applyHTMLDisplayFilters(@props.html)
_applyHTMLDisplayFilters: (html) ->
html = @_ensureNotCompletelyBlank(html)
html = @_removeQuotedTextFromHTML(html) unless @state.editQuotedText
return html
@ -311,13 +310,6 @@ ContenteditableComponent = React.createClass
_isEqualNode: ->
# This is so the contenteditable can have a non-blank TextNode for the
# selection to lock onto.
_ensureNotCompletelyBlank: (html) ->
if html.length is 0
return " "
else return html
_linksInside: (selection) ->
return _.filter @_getAllLinks(), (link) ->
selection.containsNode(link, true)