mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: single page API in public workspace (#1794)
This commit is contained in:
@@ -28,6 +28,8 @@ export const BlockSuiteEditor = (props: EditorProps) => {
|
||||
const blockHubRef = useRef<BlockHub | null>(null);
|
||||
if (editorRef.current === null) {
|
||||
editorRef.current = new EditorContainer();
|
||||
editorRef.current.page = props.page;
|
||||
editorRef.current.mode = props.mode;
|
||||
globalThis.currentEditor = editorRef.current;
|
||||
}
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
Reference in New Issue
Block a user