mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(editor): remove old specs (#11909)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getViewManager } from '@affine/core/blocksuite/manager/migrating-view';
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import { PageEditorBlockSpecs } from '@blocksuite/affine/extensions';
|
||||
import { BlockStdScope } from '@blocksuite/affine/std';
|
||||
import type { Store } from '@blocksuite/affine/store';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
@@ -44,7 +44,7 @@ export function createBlockStdScope(doc: Store) {
|
||||
logger.debug('createBlockStdScope', doc.id);
|
||||
const std = new BlockStdScope({
|
||||
store: doc,
|
||||
extensions: PageEditorBlockSpecs,
|
||||
extensions: getViewManager().get('page'),
|
||||
});
|
||||
return std;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user