mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-02 17:34:49 +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)
|
__html: @_applyHTMLDisplayFilters(@props.html)
|
||||||
|
|
||||||
_applyHTMLDisplayFilters: (html) ->
|
_applyHTMLDisplayFilters: (html) ->
|
||||||
html = @_ensureNotCompletelyBlank(html)
|
|
||||||
html = @_removeQuotedTextFromHTML(html) unless @state.editQuotedText
|
html = @_removeQuotedTextFromHTML(html) unless @state.editQuotedText
|
||||||
return html
|
return html
|
||||||
|
|
||||||
|
@ -311,13 +310,6 @@ ContenteditableComponent = React.createClass
|
||||||
|
|
||||||
_isEqualNode: ->
|
_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) ->
|
_linksInside: (selection) ->
|
||||||
return _.filter @_getAllLinks(), (link) ->
|
return _.filter @_getAllLinks(), (link) ->
|
||||||
selection.containsNode(link, true)
|
selection.containsNode(link, true)
|
||||||
|
|
Loading…
Add table
Reference in a new issue