Skip to content

Commit

Permalink
Outline: Support to scroll to the top inside the RTF editor
Browse files Browse the repository at this point in the history
  • Loading branch information
benlau committed Mar 8, 2024
1 parent 32e15b5 commit d5a8470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/outline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export default class OutlineTool extends Tool {
});
} else {
// RTF Editor
await joplinRepo.commandsExecute("scrollToHash", slug);
const hash = slug === "" ? "rendered-md" : slug;
await joplinRepo.commandsExecute("scrollToHash", hash);
}
}

Expand Down

0 comments on commit d5a8470

Please sign in to comment.