-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Editor: Fix tinymce float toolbar not hide (fixes #1486) #2084
Editor: Fix tinymce float toolbar not hide (fixes #1486) #2084
Conversation
Hi @ralder, thanks for the pull request! As a bit of background, the To the changes here, I think adding the condition for However, I'm not so certain about the |
|
I'm seeing I'm also seeing that your other change does not fix #1486 - I'm able to reproduce it intermittently in both master and this branch. In master, we still call Related to #1486 - the editor doesn't always get that |
I'm sorry 😳. @nylen is right, browsers send
In my test in browser I cant do this when I refocused editor by click him. If I clicked by previous element with hidden toolbar(toolbar is shown again) if I clicked by element without toolbar (previous toolbar is shown and then hides straight away), i.e. i cant found element in editor for click for just got focus for showing hidden toolbar. And when I changed in blur handler If you not get blur event for click notification icon, say whats environment you have. I always got it except touch devices |
Sorry for the delay @ralder, I've been meaning to come back to this but got pulled onto another project and haven't had time. I didn't look at the event type in the context of that code - you're correct that it is I'm still seeing that this PR does not fix #1486 because the Still, these are good changes. They make more sense to me now, thanks for explaining. There are 2 different issues that this PR fixes. Inline toolbar reappears after blur then scroll
Fixed by clearing the active toolbar on Inline toolbar does not reappear after resizing window
Fixed by testing for |
Editor: Fix tinymce float toolbar not hide (fixes #1486)
Reason of this issue was that on blur event
activeToolbar
was hidden but after if window is got scroll event it was shown again.Changed 'resize' to 'resizewindow' because it's right for window target (tested in ie11 on win10; ff, chrome, safari on mac os)
PS: