Skip to content

Commit

Permalink
πŸ› InserHeadingBreak Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-v-esh committed Feb 23, 2021
1 parent 1c8c7b8 commit 49fae6d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const insertHeadingbreak = (editor) => {
const text = { object: 'text', text: '' };
const n = { object: "block", type: 'paragraph', children: [text] };
Transforms.insertNodes(editor, n);
Transforms.move(editor, { distance: 1, unit: 'character' });
return;
}

Expand Down

0 comments on commit 49fae6d

Please sign in to comment.