Inconsistent behavior for URL fields #16902
Labels
intro
Good first ticket.
package:image
squad:collaboration
Issue to be handled by the Collaboration team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
https://ckeditor.com
) and press Enter while the URL input is still focused. The link should be addedhttps://placehold.co/200x300
) and press Enter while the URL input is still focused.✔️ Expected result
The image should be inserted into the editor – just like it happened with the link.
❌ Actual result
Nothing happens, the Enter keypress is ignored.
❓ Possible solution
The Enter key behavior from the Link balloon is connected with the implicit form submission behavior: if the text
input
in the form is focused when the user presses Enter, the form is submitted.The
input
in the Link balloon is encapsulated inside aform
and thanks to that, pressing Enter inserts the link. However, theinput
in the Image dialog is not encapsulated inside aform
leading to a worse user experience (the user needs to either click the "Insert" button or – if they use only the keyboard for navigation – tab to the "Insert" button and press Enter/Space). Adding theform
element to the Image dialog should fix the issue.📃 Other details
image
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: