Focus the code editor on mount

This commit is contained in:
Mel O'Hagan 2023-12-19 15:29:39 +00:00
parent 654f807d33
commit 986eba7a50
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@
extensions: buildExtensions(baseExtensions),
parent: textarea,
})
editor.focus()
}
$: editorHeight = typeof height === "number" ? `${height}px` : height