Automatically focus editor on page load

This commit is contained in:
Jonatan Heyman 2022-12-30 03:02:31 +01:00
parent 662a234377
commit b1e46e2b96

View File

@ -64,6 +64,19 @@ editor.update([
}) })
]) ])
editor.dispatch({
selection: {anchor: 0, head: 0},
})
editor.focus()
/* /*
// render syntax tree // render syntax tree
setTimeout(() => { setTimeout(() => {