-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Change Cursor Position to particular para Medium Editor #1056
Comments
So you can move cursor to the beginning of MediumEditor.selection.moveCursor(document, element, 0); |
Doesn't work if editor is on blur state. I am providing ownerDocument also as the firstArgument but still not working on blur state. If focus is already on editor then works well. |
Then try to focus on the editor first. You can try simple |
The ideal case to set focus would be to do what @orthes recommended. If you needed a programatic way to set focus, you can also use |
How to change the position of cursor to particular para in medium editor. I am able to fetch node of the target para but unable to relocate cursor. Tried
focus()
but its not working. Also triedEditor. selectElement()
but it highlights the whole para, didn't move the cursor. Any help on this? Just a beginner to editorThe text was updated successfully, but these errors were encountered: