mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: set the correct mode when loading the page (#1069)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -39,6 +39,7 @@ export const Editor = ({
|
||||
|
||||
const editor = new EditorContainer();
|
||||
editor.page = page;
|
||||
editor.mode = page.meta.mode as typeof editor.mode;
|
||||
|
||||
editorContainer.current?.appendChild(editor);
|
||||
if (page.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user