Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleReturnForListItem = (block) => {
- const { editorState } = this.state;
- const depth = block.getDepth();
- if (depth > 0) {
- this.onChange(decreaseBlockDepth(block, editorState));
- } else if (depth === 0) {
- this.onChange(changeBlockType(editorState));
- }
- }
Add Comment
Please, Sign In to add comment