mirror of
https://github.com/heyman/heynote.git
synced 2024-11-22 07:54:11 +01:00
Automatically focus editor on page load
This commit is contained in:
parent
662a234377
commit
b1e46e2b96
@ -64,6 +64,19 @@ editor.update([
|
||||
})
|
||||
])
|
||||
|
||||
|
||||
editor.dispatch({
|
||||
selection: {anchor: 0, head: 0},
|
||||
})
|
||||
editor.focus()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
// render syntax tree
|
||||
setTimeout(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user