Skip to content

Commit

Permalink
chore: improve the development page a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 31, 2023
1 parent 627170a commit 6588a01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routes/development/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,16 @@
</button>
<button
on:click={() => {
refTextEditor?.select({
if (!refTextEditor) {
alert('Open the text editor first (right panel)')
return
}
refTextEditor.select({
type: SelectionType.text,
ranges: [{ anchor: 5, head: 12 }],
main: 0
})
refTextEditor?.focus()
refTextEditor.focus()
}}
>
Select char 5 to 12
Expand Down

0 comments on commit 6588a01

Please sign in to comment.