Guest User

Untitled

a guest
Jun 25th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. handleKeyCommand(command) {
  2. const { editorState } = this.state;
  3. const newState = RichUtils.handleKeyCommand(editorState, command);
  4.  
  5. if (newState) {
  6. this.onChange(newState);
  7. return true;
  8. }
  9.  
  10. return false;
  11. }
Add Comment
Please, Sign In to add comment