mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 13:58:50 +08:00
fix: title behavior on BlockSuite editor (#1264)
This commit is contained in:
@@ -54,7 +54,7 @@ const PreviewPage: NextPage<PreviewPageProps> = ({
|
||||
onInit={(page, editor) => {
|
||||
blockSuiteWorkspace.setPageMeta(page.id, { title });
|
||||
const pageBlockId = page.addBlockByFlavour('affine:page', {
|
||||
title,
|
||||
title: new page.Text(title),
|
||||
});
|
||||
page.addBlockByFlavour('affine:surface', {}, null);
|
||||
const frameId = page.addBlockByFlavour(
|
||||
|
||||
Reference in New Issue
Block a user