How to set focus and cursor on editor if document is not empty? #883
-
I have a problem with focusing on the editor on the Web and MacOS. If the document is empty, the focus is set on the editor and I can type the text as soon as it opens. But if the document is empty, the focus is not set on the editor and I can't type text. I tried to use the focus() method, but it still didn't work. Please how can I set focus on the editor and also make the cursor show up as soon the editor is open? You can also use the super editor example to test it out: https://editor.superlist.com/ Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you provide a minimal code sample that shows how you're trying to use the editor? |
Beta Was this translation helpful? Give feedback.
-
@matthew-carroll thanks for the response, please find the reproduction below. Reproduction:
Expected result:The editor should accept keyboard input automatically and the blinking cursor should be visible on all platforms when the Actual result:The editor does not accept keyboard input automatically and the blinking cursor is not visible and the Additional information:The issue is not reproducible on the iOS/Android versions of the example app. |
Beta Was this translation helpful? Give feedback.
-
@isaacadariku This issue was fixed in #1013 |
Beta Was this translation helpful? Give feedback.
@isaacadariku This issue was fixed in #1013