-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Race condition between the link UI and the contextual toolbar #852
Comments
For non-collapsed selection I think that toolbar should be shown. For collapsed it is discussible, but I also think that toolbar should be shown and the link ui will be still accessible through link icon. |
The problem is that when a new link is created it gets selected as a whole. We'd need to drop this behavior. |
The behaviour that link gets selected after it's created, theoretically, allows us to override link's text after we do https://github.com/ckeditor/ckeditor5-link/issues/73. So, I think that in such a case it should stay. Alternatively, we could do the same thing which GDocs does, so add a "link text" input to the link balloon. And you can notice that GDocs makes a collapsed selection at the end of the newly inserted link. BTW, this is actually a DUP of https://github.com/ckeditor/ckeditor5-link/issues/152. But I created #152 in non-general enough way, so I'll merge that one into this issue. |
So for me it looks like the behavior is due to "double click" behavior that selects texts.
|
My comments from ckeditor/ckeditor5-link#152:
|
The problem in my opinion here is that both are required just in different contexts - as it is now... When I click the link - the UI for changing/removing link looks OK. When I select part of the text with link I might want to make something with that selection (like bold). One solution is to add timeout and try to "detect" double click - but such solution would probably make normal single-click on link look sluggish :(. |
This is annoying but not super common and we have more important things to fix now and there's no easy solution here, so I removed the milestone. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
π Is this a bug report or feature request? (choose one)
π» Version of CKEditor
master
π Steps to reproduce
β Expected result
Which one should prevail? We need to understand which one has a greater priority in terms of UX.
β Actual result
UIs show up at random upon click.
π Other details that might be useful
Related #845
cc @Reinmar @dkonopka
The text was updated successfully, but these errors were encountered: