Skip to content

Commit

Permalink
add focus to editor when initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Aug 20, 2024
1 parent ca8bb6c commit b56ca47
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const EditComponent = ({ patternId }: { patternId: PatternId }) => {
},
}),
],
autofocus: true,
content: editorContent,
onUpdate: ({ editor }) => {
const content = editor.getHTML();
Expand Down

0 comments on commit b56ca47

Please sign in to comment.