plate
plate copied to clipboard
Using right arrow key should exit out of inline code markup
Description If I don't have the toolbar and I remove the space after the inline code markup, I have no way to go outside the inline code block on the same line.
Steps
- Go to the docs
- Scroll down to the bottom of the editor
- Try to write something after the inline code markup on the same line, without using the toolbar buttons.
Expectation
The user should be able to use their right arrow key at the very end position inside the inline code markup to either have the current behavior of going to the next existing character, or create a new node with the type of default if there aren't any nodes after the code markup on that line.
Environment
- slate: 0.63.0
- slate-react: 0.65.2
- browser: chrome
This is a great feature I often use in Slack.
This can be a plugin decoupled from the code plugin to be reused for multiple mark types, that would return onKeyDown handler.