Skip to content

Instantly share code, notes, and snippets.

@levvsha
Last active July 1, 2018 07:58
Show Gist options
  • Save levvsha/0e2d65dafa1245406c573e5d4290a8e4 to your computer and use it in GitHub Desktop.
Save levvsha/0e2d65dafa1245406c573e5d4290a8e4 to your computer and use it in GitHub Desktop.
render() {
...
<Editor
editorState={editorState}
onChange={this.onChange}
handleKeyCommand={this.handleKeyCommand}
customStyleMap={customStyleMap}
handleDroppedFiles={this.handleDroppedFiles} // <-- [3]
handleReturn={this.handleReturn} // <-- [2]
blockRenderMap={RenderMap} // <-- [1]
blockRendererFn={this.blockRendererFn} // <-- [1]
ref="editor"
/>
...
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment