From 78ce30db6917da22a8a0f6679d028109d56fd68f Mon Sep 17 00:00:00 2001 From: EYHN Date: Thu, 29 Feb 2024 13:59:20 +0000 Subject: [PATCH] fix(core): fix editor sidebar (#5965) --- .../block-suite-editor/blocksuite-editor-container.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx index f2140edc16..faaa935ec4 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx @@ -146,6 +146,9 @@ export const BlocksuiteEditorContainer = forwardRef< get page() { return page; }, + get doc() { + return page; + }, get host() { return mode === 'page' ? docRef.current?.host