Skip to content

Commit

Permalink
hotfix initialcontent (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefED authored Aug 3, 2023
1 parent 3391b99 commit ad1bac8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/BlockNoteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,15 @@ export class BlockNoteEditor<BSchema extends BlockSchema = DefaultBlockSchema> {
this.schema = newOptions.blockSchema;

const initialContent =
newOptions.initialContent || options.collaboration
newOptions.initialContent ||
(options.collaboration
? undefined
: [
{
type: "paragraph",
id: UniqueID.options.generateID(),
},
];
]);

const tiptapOptions: EditorOptions = {
...blockNoteTipTapOptions,
Expand Down

1 comment on commit ad1bac8

@vercel
Copy link

@vercel vercel bot commented on ad1bac8 Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.