-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Inline boundary and arrow navigation edge case #5095
Comments
See also #1246. |
As of Gutenberg 2.6, pressing right arrow allows you to exit a formatting boundary (e.g. links or italic text) without moving to the next block. I think this issue can be closed now as the problem appears to be fixed. EDIT: Nevermind, I just found out that the |
Yeah I still can reproduce on current trunk. With the caret at the end of a boundary, users should be able to press the right arrow key to exit the boundary. So in this situation (see below): I should just be able to press right arrow, exit the italic boundary, and keep typing in the current block. Instead, caret goes to the following bock. |
To be honest I see no easy solution here. The edge detection is handled in writing flow, which receives the |
Also placing the caret back is broken in some cases. It will put it inside the boundary if there's no zero width space outside the boundary already, so it doesn't always place it at the edge. |
Unassigning for now as I don't have a solution for this atm. |
Possibly related:
Expected: New paragraph added after, caret placed at beginning of new paragraph. I'm hoping to be able to revive (at least parts of) #6467 and/or #6712 which should address some of the issues noted here. |
Tested on current master.
In the current demo content, there's a paragraph that contains italic text:
TinyMCE adds "boundaries" to the italic text so to actually exit the boundary, you have to move the caret using the right arrow key. At that point, arrows navigation through blocks kicks in and the caret moves to the following block.
There's no way to exit the boundary not even using the mouse. Pressing the spacebar doesn't work, as you're still inside the boundary.
The only way I've found to exit the boundary and start typing not italic text is to press the right arrow (this brings me in the following block) then press the left arrow (this brings me back to the paragraph block, outside of the boundary).
Wondering what the best option would be in this case. I'd agree it's an edge case but I guess it won't be so uncommon that a block ends with some link, italic, or bold text.
The text was updated successfully, but these errors were encountered: