mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
chore: bump version (#1597)
This commit is contained in:
@@ -49,6 +49,9 @@ export function _initPageWithDemoMarkdown(
|
||||
page.addBlockByFlavour('affine:surface', {}, null);
|
||||
const frameId = page.addBlockByFlavour('affine:frame', {}, pageBlockId);
|
||||
page.addBlockByFlavour('affine:paragraph', {}, frameId);
|
||||
editor.clipboard.importMarkdown(demoText, frameId);
|
||||
setTimeout(() => {
|
||||
// hotfix: contentParser.importMarkdown is not working in the first render
|
||||
editor.contentParser.importMarkdown(demoText, frameId);
|
||||
}, 0);
|
||||
page.workspace.setPageMeta(page.id, { demoTitle });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user