Closed hostep closed 7 years ago
Related: #8874, #7149 and #700
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 develop
and 2.1-develop
branch so we can try to include this fix in one of the next Magento versions.
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
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.1 So this might be the solution then:This is also how they fixed it in TinyMCE 4.5.4 a month or two ago: https://github.com/tinymce/tinymce/commit/19f3098f2bbd4740b4e9ac67b40c2a58201fc386#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).