Focus CustomNodeView on creation #1958
Answered
by
philippkuehn
patrickcorrigan
asked this question in
Questions & Help
-
I have a custom node view. You can add as many of them as you want to your document. What is the best way to go about focusing them on creation? |
Beta Was this translation helpful? Give feedback.
Answered by
philippkuehn
Sep 29, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hanspagel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const pos = props.getPos()
editor.commands.focus(pos)