This repository reproduces an error happening in Firefox with Slate.
The error comes from the `isInEditor` function which tries to read window.getSelection().anchorNode.nodeType