slate
slate copied to clipboard
When I insert a link, the cursor focuses on the link node
Description When I insert a link, the cursor focuses on the link node, I want to not focus on the link node and can enter text directly
Recording A GIF or video showing the issue happening. (If you don't include this, there's a very good chance your issue will be closed, because it's much too hard to figure out exactly what is going wrong, and it makes maintenance much harder.)
Sandbox A link to a sandbox where the error can be reproduced. (You can start from the base sandbox here: https://codesandbox.io/s/slate-reproductions-c7gyg or refer to the Slate website too.)
Steps To reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expectation A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)
Environment
- Slate Version: [e.g. 0.59]
- Operating System: [e.g. iOS]
- Browser: [e.g. Chrome, Safari]
- TypeScript Version: [e.g. 3.9.7 - required only if it's a TypeScript issue]
Context Add any other context about the problem here. (The fastest way to have an issue fixed is to create a pull request with working, tested code and we'll help merge it. Slate is solving a pretty complex problem, and we can't do it without active contributors, so thank you so much for your help!)
hii @HeartLF, I want to work on this issue. Can you please help me by attaching a video or image so that I can understand the issue clearly?
hii @HeartLF, I want to work on this issue. Can you please help me by attaching a video or image so that I can understand the issue clearly?
https://www.slatejs.org/examples/inlines After I insert the link, the cursor is still on the link node. I need to press the right key on the keyboard to remove the cursor. Can the cursor not be on the link after inputting?