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 Oct 31, 2021
1 parent 03639f6 commit 0def6ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,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 0def6ec

Please sign in to comment.