Skip to content

Commit

Permalink
Forward the custom type
Browse files Browse the repository at this point in the history
  • Loading branch information
mareksuscak committed May 28, 2024
1 parent 0f6cb5f commit 0b0997b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/trailing-block/src/withTrailingBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const withTrailingBlock = <
) {
const at = lastChild ? Path.next(lastChild[1]) : [0];

insertElements(editor, editor.blockFactory({}, at), { at });
insertElements(editor, editor.blockFactory({ type }, at), { at });

return;
}
Expand Down

0 comments on commit 0b0997b

Please sign in to comment.