Cleaner API for BlockToolbar cursor positioning

This commit is contained in:
Tom Moor
2017-12-05 23:41:01 -08:00
parent 5c38ff9e63
commit b794a0cc70
2 changed files with 19 additions and 12 deletions

View File

@@ -24,6 +24,7 @@ export function splitAndInsertBlock(change: Change, options: Options) {
.call(changes.unwrapList);
}
if (wrapper) change.collapseToStartOfNextBlock();
change.insertBlock(type);
if (wrapper) change.wrapBlock(wrapper);