Skip to content
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

Contextual toolbar should not be shown when doing a selection #5360

Closed
Reinmar opened this issue May 10, 2017 · 5 comments
Closed

Contextual toolbar should not be shown when doing a selection #5360

Reinmar opened this issue May 10, 2017 · 5 comments
Labels
package:ui resolution:expired This issue was closed due to lack of feedback. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Reinmar
Copy link
Member

Reinmar commented May 10, 2017

may-10-2017 15-29-41

@Reinmar
Copy link
Member Author

Reinmar commented May 19, 2017

I've just talked with @oleq and @oskarwrobel and I'm a bit confused.

I don't understand why does CT listen to model's change:range. The aspect of making selection by dnd is purely view's stuff and handling it in the model is weird. E.g. the model does not know whether the mouse button is still down or up.

Also, we have the view's selectionChangeDone event which was meant to be improved to really reflect when the selection is being done. Maybe we should just work on this event to make it really reliable instead of workarounding this and creating similar issues (selCDone has the same issue as the debounced change:range used by CT).

@oskarwrobel
Copy link
Contributor

In the first implementation, view#selectionChange and view#selectionChangeDone events were used, but problem was that those events were fired when style of text in selection has changed (like bold, italic...) and CT was blinking (now I see that renderer is improved and selectionChange is not fired in this scenario). The second problem is described here by @pjasiun.

I also tried to use view.selection#change but I had the same problem with blinking CT as above, besides view.selection#change is fired on external document changes and there is no way to identify that change is external.

Using model.selection#change:range solves above issues.

@mlewand mlewand transferred this issue from ckeditor/ckeditor5-ui Oct 9, 2019
@mlewand mlewand added this to the backlog milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:bug This issue reports a buggy (incorrect) behavior. package:ui labels Oct 9, 2019
@pomek pomek removed this from the backlog milestone Feb 21, 2022
@CKEditorBot
Copy link
Collaborator

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.

@CKEditorBot
Copy link
Collaborator

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.

@CKEditorBot
Copy link
Collaborator

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).

@CKEditorBot CKEditorBot added resolution:expired This issue was closed due to lack of feedback. and removed status:stale labels Jan 15, 2024
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:ui resolution:expired This issue was closed due to lack of feedback. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

5 participants