Skip to content

Commit

Permalink
fix(core): focus after set heading
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Mar 26, 2020
1 parent f119e6e commit 60d9e02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bytemd/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function handleHeading(cm: Editor) {
const { line } = cm.getCursor();
const content = cm.getLine(line);
cm.replaceRange(`### ${content}`, { line, ch: 0 }, { line });
cm.focus();
}

export function handleBlockquote(cm: Editor) {
Expand Down

0 comments on commit 60d9e02

Please sign in to comment.