mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
remove single space hack
This commit is contained in:
parent
4af00cfaf4
commit
d1b3b83e38
1 changed files with 0 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue