Skip to content

Commit

Permalink
fix(ui-markdown-editor): fixes cursor movement around headings - #260
Browse files Browse the repository at this point in the history
Signed-off-by: d-e-v-esh <[email protected]>
  • Loading branch information
d-e-v-esh committed Apr 3, 2021
1 parent 0667d02 commit ba9bbfb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,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 ba9bbfb

Please sign in to comment.