Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleKeyCommand(command) {
- const { editorState } = this.state;
- const newState = RichUtils.handleKeyCommand(editorState, command);
- if (newState) {
- this.onChange(newState);
- return true;
- }
- return false;
- }
Add Comment
Please, Sign In to add comment