mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
chore(editor): move helper to playground (#9498)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { createEmptyDoc, EdgelessEditor } from '@blocksuite/presets';
|
||||
import { EdgelessEditor } from '@blocksuite/presets';
|
||||
|
||||
import { createEmptyDoc } from '../../../apps/_common/helper';
|
||||
|
||||
const doc = createEmptyDoc().init();
|
||||
const editor = new EdgelessEditor();
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import '../../../style.css';
|
||||
|
||||
import { createEmptyDoc, PageEditor } from '@blocksuite/presets';
|
||||
import { PageEditor } from '@blocksuite/presets';
|
||||
import { Text } from '@blocksuite/store';
|
||||
|
||||
import { createEmptyDoc } from '../../../apps/_common/helper';
|
||||
|
||||
const doc = createEmptyDoc().init();
|
||||
const editor = new PageEditor();
|
||||
editor.doc = doc;
|
||||
|
||||
Reference in New Issue
Block a user