mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): add mock notes creator (#10109)
Further features should be validated using multiple notes. <img width="806" alt="image" src="https://github.com/user-attachments/assets/ad2bf934-bebe-479a-bec0-a0a28001b08d" />
This commit is contained in:
@@ -10,9 +10,9 @@ import { createEmptyDoc } from '../../apps/_common/helper';
|
||||
blocksEffects();
|
||||
presetsEffects();
|
||||
|
||||
export const doc = createEmptyDoc().init();
|
||||
export const { doc } = createEmptyDoc();
|
||||
export const editor = new AffineEditorContainer();
|
||||
editor.pageSpecs = [...editor.pageSpecs, ViewportTurboRendererExtension];
|
||||
|
||||
editor.edgelessSpecs = [
|
||||
...editor.edgelessSpecs,
|
||||
ViewportTurboRendererExtension,
|
||||
|
||||
Reference in New Issue
Block a user