-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I put focus on the last element <Codemirror />? #619
Comments
@TigranGithub I don't understand your exact need. |
@jaywcjlove here's an example: 1.) I have a custom UI that allow user to edit: 2.) When user click edit, I set the |
<CodeMirror
value={`console.log('hello')`}
theme="none"
height="400px !important"
width="100%"
+ selection={EditorSelection.cursor(0)}
style={{ margin: '0 0 23px 0', flex: 1 }}
extensions={[langs.markdown()]}
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for example clicking
edit
button and want to focus will be on last element.Thanks!
The text was updated successfully, but these errors were encountered: