Month: March 2019
-
Unable to find a dom node for 19 – Slate.js
Hi everyone, I ran into the following error while attempting to add an image to a slate.js editor today: slate.js unable to find dom node for 19 The solution was to add a simple schema to my editor: spellCheck autoFocus ref={this.ref} value={this.state.value} onChange={this.onChange} onKeyDown={this.onKeyDown} onDrop={this.onDropOrPaste} onPaste={this.onDropOrPaste} renderNode={this.renderNode} renderMark={this.renderMark} className={classes.editor} readOnly={readOnly} onFocus={() => { this.setState({ changed:…