-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Chrome version 58 causes problems with selections in the tinymce editor #9518
Comments
I can second this bug, Chrome 58. Confirmed that it didn't happen on 57 (colleague hadn't updated yet). |
Also: a client of mine reports this is coming up on Microsoft Edge. |
If some Magento dev, or maybe even @spocke can confirm that my suggested fix above is correct, then I'll create a PR against both the |
I've implemented and tested @hostep's fix - all works well. |
Hi @hostep, Thank you for the contribution, I'm closing this issue. |
@KrystynaKabannyk, why is this being closed? Has the fix reached a 2.1.x release already? Until the fix gets into a released version, this issue will persist for ordinary merchants. BTW, Are there any plans to fix it on other branches as per hostep's comment? |
Sorry for closing in a hurry, yes , you are right, we need to wait until patch release. |
Internal ticket to track issue progress: MAGETWO-69234 |
Internal ticket to track issue progress: MAGETWO-69152 |
Let's close this issue, since it was fixed in Magento 2.1.8 |
This may fix sentry error MEDIATHREAD-5G. See: magento/magento2#9518
Preconditions
Steps to reproduce
Expected result
Actual result
Discussion
This doesn't happen in Safari 10.1 or Firefox 53.0. I'm pretty sure this used to work in Chrome 57 but haven't verified this.
The commit log for Chrome between version 57.0.2987.133 and 58.0.3029.81 contains a bunch of updates/fixes to how they implemented the Selection API
More specific: https://www.chromestatus.com/feature/5696359768260608
From the source code of TinyMCE, it looks like they used the
setBaseAndExtent
method as a workaround for an old bug in the WebKit rendering engine.If I remove this workaround and use a normal
select
call, everything seems to be working again in Chrome 58, and also keeps working in Safari 10.1So this might be the solution then:
This is also how they fixed it in TinyMCE 4.5.4 a month or two ago: tinymce/tinymce@19f3098#diff-e5490c44bb1973bd0210940a7c159866
There is a bug reported on the Chromium bugtracker, because Wordpress has the same problem, but the bugreport has status
WontFix
, so I think Chrome is going to continue to have this issue unless we fix it in Magento.Wordpress thread: https://core.trac.wordpress.org/ticket/40305
Wordpress fixed it by simple upgrading TinyMCE to the latest version, but I'm affraid we can't do that in Magento, since it is using TinyMCE version 3.4.7, which was released in 2011, and I think upgrading will most likely break everything (untested).
The text was updated successfully, but these errors were encountered: