Fixed: Creating checklists from block toolbar

This commit is contained in:
Tom Moor
2017-12-06 07:53:54 -08:00
parent b794a0cc70
commit 30b2b91bbc
2 changed files with 5 additions and 3 deletions

View File

@@ -73,9 +73,9 @@ class BlockToolbar extends Component {
editor.change(change => {
change
.collapseToEndOf(this.props.node)
.call(splitAndInsertBlock, options)
.removeNodeByKey(this.props.node.key)
.collapseToEnd()
.call(splitAndInsertBlock, options);
.collapseToEnd();
if (cursorPosition === 'before') change.collapseToStartOfPreviousBlock();
if (cursorPosition === 'after') change.collapseToStartOfNextBlock();