Skip to content

Commit

Permalink
fix(ui-markdown-editor): fixes cursor movement around headings - acco…
Browse files Browse the repository at this point in the history
…rdproject#260

Signed-off-by: d-e-v-esh <[email protected]>
  • Loading branch information
d-e-v-esh committed Feb 24, 2021
1 parent 6996406 commit b80d7b8
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 b80d7b8

Please sign in to comment.