A followup of https://github.com/ckeditor/ckeditor5-link/issues/2.
Note: This issue is for mouse–only interaction.
Note: This is the most basic but also the must–have UX that should be implemented in iteration3. Other improvements and sophisticated tweaks to the link UX will have their own issues, which can be resolved in later iterations.
Expected:

Expected:

Expected:

Expected:

Should we make it in a way that, if the user starts typing after creating a link in a collapsed selection, the typed text replaces the link contents?
@fredck What you described is beyond the scope of this particular issue. More sophisticated UX behaviours will be described in separate issues, so they can be developed separately.
What I created in this issue is a must have thing in iteration3. Other behaviours can be implemented in i3 or following iterations.
So no discussion if this is a must have? I remember @Reinmar saying something about being able to define the text of the link in such cases, so I thought about proposing the above solution for it.
I agree with Fred that it's a must have, but I understand Olek's point – this can be done in a separate ticket. It's a bit beyond the scope of the link itself because it's also a question what engine and typing packages will do.
@fredck, @Reinmar: I decided to split the UX into a number of issues, as granular as possible. This will let us stay focused, understand current status of implementation and manage the lifecycle of feature in the future.
How many issues like this will be closed in iteration3? This one, that's for sure. More is better, of course. I'm creating other issues for different UX aspects of linking right now, so stay tuned.
Sorry for closing :) Wrong button :)
Most helpful comment
Should we make it in a way that, if the user starts typing after creating a link in a collapsed selection, the typed text replaces the link contents?