mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-07 04:20:11 +08:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -489,7 +489,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
);
|
||||
for (const doc of docs) {
|
||||
if (doc) {
|
||||
const noteBlock = window.doc.getBlockByFlavour('affine:note');
|
||||
const noteBlock = window.doc.getModelsByFlavour('affine:note');
|
||||
window.doc.addBlock(
|
||||
'affine:paragraph',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user