mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
chore: bump version (#1597)
This commit is contained in:
@@ -71,9 +71,12 @@ const PreviewPage: NextPage<PreviewPageProps> = ({
|
||||
pageBlockId
|
||||
);
|
||||
page.addBlockByFlavour('affine:paragraph', {}, frameId);
|
||||
editor.clipboard.importMarkdown(text, frameId).then(() => {
|
||||
page.resetHistory();
|
||||
});
|
||||
setTimeout(() => {
|
||||
// hotfix: contentParser.importMarkdown is not working in the first render
|
||||
editor.contentParser.importMarkdown(text, frameId).then(() => {
|
||||
page.resetHistory();
|
||||
});
|
||||
}, 0);
|
||||
}}
|
||||
/>
|
||||
<StyledToolWrapper>
|
||||
|
||||
@@ -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