mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Fixes T1344: composer links fixed
This commit is contained in:
parent
e5dfc7cadd
commit
14c4c215e6
1 changed files with 1 additions and 1 deletions
|
@ -346,6 +346,7 @@ class ContenteditableComponent extends React.Component
|
||||||
selection = document.getSelection()
|
selection = document.getSelection()
|
||||||
return if @_checkSameSelection(selection)
|
return if @_checkSameSelection(selection)
|
||||||
return unless selection.anchorNode? and selection.focusNode?
|
return unless selection.anchorNode? and selection.focusNode?
|
||||||
|
return unless @_selectionInScope(selection)
|
||||||
|
|
||||||
@_previousSelection = @_selection
|
@_previousSelection = @_selection
|
||||||
|
|
||||||
|
@ -766,7 +767,6 @@ class ContenteditableComponent extends React.Component
|
||||||
linkToModify: null
|
linkToModify: null
|
||||||
editAreaWidth: editAreaWidth
|
editAreaWidth: editAreaWidth
|
||||||
|
|
||||||
# See selection API: http://www.w3.org/TR/selection-api/
|
|
||||||
_selectionInScope: (selection) =>
|
_selectionInScope: (selection) =>
|
||||||
return false if not selection?
|
return false if not selection?
|
||||||
editable = @_editableNode()
|
editable = @_editableNode()
|
||||||
|
|
Loading…
Reference in a new issue