chore(editor): move helper to playground (#9498)

This commit is contained in:
Saul-Mirone
2025-01-03 04:23:59 +00:00
parent a4e94ab72f
commit 0699205721
7 changed files with 16 additions and 11 deletions

View File

@@ -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();

View File

@@ -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;