mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
Feat/blocksuit version (#760)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { Workspace as BlocksuiteWorkspace } from '@blocksuite/store';
|
||||
import { BlockSchema } from '@blocksuite/blocks/models';
|
||||
import { builtInSchemas } from '@blocksuite/blocks/models';
|
||||
|
||||
export const createBlocksuiteWorkspace = (workspaceId: string) => {
|
||||
return new BlocksuiteWorkspace({
|
||||
room: workspaceId,
|
||||
}).register(BlockSchema);
|
||||
}).register(builtInSchemas);
|
||||
};
|
||||
|
||||
const DefaultHeadImgColors = [
|
||||
|
||||
Reference in New Issue
Block a user