diff --git a/examples/draft-0-10-0/plaintext/plaintext.html b/examples/draft-0-10-0/plaintext/plaintext.html index 641a7855e2..4c8068b86a 100644 --- a/examples/draft-0-10-0/plaintext/plaintext.html +++ b/examples/draft-0-10-0/plaintext/plaintext.html @@ -38,6 +38,7 @@ this.onChange = (editorState) => this.setState({editorState}); this.logState = () => console.log(this.state.editorState.toJS()); this.setDomEditorRef = ref => this.domEditor = ref; + this.focus = () => this.domEditor.focus(); } componentDidMount(){