fix(specs): fix contenteditable specs

This commit is contained in:
Evan Morikawa 2015-08-19 13:35:12 -07:00
parent e018d6a8ec
commit 51288b261a

View file

@ -191,7 +191,7 @@ class ContenteditableComponent extends React.Component
_textContentAtCursor: ->
selection = document.getSelection()
if selection.isCollapsed
return selection.anchorNode.textContent
return selection.anchorNode?.textContent
else return null
_runExtensionFilters: ->