mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
feat(editor): add editor store (#9584)
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
ThemeExtensionIdentifier,
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import { Bound } from '@blocksuite/affine/global/utils';
|
||||
import type { Block, Blocks } from '@blocksuite/affine/store';
|
||||
import { type Block, type Blocks, Store } from '@blocksuite/affine/store';
|
||||
import { createSignalFromObservable } from '@blocksuite/affine-shared/utils';
|
||||
import type { Container } from '@blocksuite/global/di';
|
||||
import type { Signal } from '@preact/signals-core';
|
||||
@@ -90,7 +90,7 @@ export const EdgelessSnapshot = (props: Props) => {
|
||||
if (!doc) return;
|
||||
|
||||
const editorHost = new BlockStdScope({
|
||||
doc,
|
||||
store: new Store({ blocks: doc }),
|
||||
extensions: [
|
||||
...SpecProvider.getInstance().getSpec('edgeless:preview').value,
|
||||
getThemeExtension(framework),
|
||||
|
||||
Reference in New Issue
Block a user