feat: bump blocksuite (#5453)

Change history: https://github.com/toeverything/blocksuite/compare/e3abcbb...master
This commit is contained in:
Peng Xiao
2024-01-03 02:10:19 +00:00
parent 8dc3e3d65c
commit 6cb62ed25d
22 changed files with 169 additions and 178 deletions

View File

@@ -222,11 +222,11 @@ const BlockSuiteEditorImpl = forwardRef<AffineEditorContainer, EditorProps>(
block: 'center',
inline: 'center',
});
const selectManager = editor.root?.selection;
const selectManager = editor.host?.selection;
if (!blockElement.path.length || !selectManager) {
return;
}
const newSelection = selectManager.getInstance('block', {
const newSelection = selectManager.create('block', {
path: blockElement.path,
});
selectManager.set([newSelection]);