Fixes T1344: composer links fixed

This commit is contained in:
Evan Morikawa 2015-05-20 10:22:03 -07:00
parent e5dfc7cadd
commit 14c4c215e6

View file

@ -346,6 +346,7 @@ class ContenteditableComponent extends React.Component
selection = document.getSelection()
return if @_checkSameSelection(selection)
return unless selection.anchorNode? and selection.focusNode?
return unless @_selectionInScope(selection)
@_previousSelection = @_selection
@ -766,7 +767,6 @@ class ContenteditableComponent extends React.Component
linkToModify: null
editAreaWidth: editAreaWidth
# See selection API: http://www.w3.org/TR/selection-api/
_selectionInScope: (selection) =>
return false if not selection?
editable = @_editableNode()