From f03e20b97e57e2207ec5f57a899d32669a9db067 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Thu, 11 Apr 2024 11:17:13 +0000 Subject: [PATCH] fix(core): should pass mode to AffineEditorContainer (#6522) Without mode there will be some features missing in blocksuite --- .../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 4521106c95..dd40ec0075 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 @@ -164,6 +164,9 @@ export const BlocksuiteEditorContainer = forwardRef< ? docRef.current?.updateComplete : edgelessRef.current?.updateComplete; }, + get mode() { + return mode; + }, }; const proxy = new Proxy(api, {