-
Notifications
You must be signed in to change notification settings - Fork 2.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
selecting image on Chrome 58 bug (won't select image) #3611
Comments
Which version of tinymce are you using? I am currently experiencing the same issues using tinymce v4.4.1 with Google Chrome v58. |
On Fri, Apr 28, 2017 at 5:05 PM Tadd ***@***.***> wrote:
Which version of tinymce are you using? I am currently experiencing the
same issues using tinymce v4.4.1 with Google Chrome v58.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3611 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEgXuxhgDDEqvbfUp-5Dt-VRdmPBKTJks5r0lSVgaJpZM4NL1C->
.
I am using whatever comes standard with Wordpress 4.0.1
|
LOL, not very helpful! Here may be the version of Wordpress TinyMCE- outdated as usual :( See also, https://codex.wordpress.org/TinyMCE#Change_Log Compare with official TinyMCE CDN All this said, I have not encountered this issue yet (happy CDN user) |
sorry :)
…On Apr 29, 2017 12:17 AM, "Desri Pleni" ***@***.***> wrote:
I am using whatever comes standard with Wordpress 4.0.1
LOL, not very helpful!
Here may be the version of Wordpress TinyMCE- outdated as usual :(
*Version 4.1.3 - July 29, 2014* (https://www.tinymce.com/docs/
changelog/#version413-july292014)
See also, https://codex.wordpress.org/TinyMCE#Change_Log
[image: image]
<https://cloud.githubusercontent.com/assets/5103329/25552763/e4236a2c-2c56-11e7-97e1-912c6ffec2b9.png>
Compare with official TinyMCE CDN
https://www.tinymce.com/docs/changelog/#version457-april252017
*Version 4.5.7 - April 25, 2017*
All this said, I have not encountered this issue yet (happy CDN user)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3611 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEgXrm-1RcUNX2fu-4RqbcbX7RA5HaUks5r0rn0gaJpZM4NL1C->
.
|
Looks like this might be fixed in master? |
So how do I fix this, do I just overwrite the files with the latest from this repository? I don't want to break my site. |
The issue was fixed in v4.5.6 on March 30th https://www.tinymce.com/docs/changelog/#version456-march302017 Commit fixing the issue: 518a3bf I'm not sure how to go about updating it in wordpress. But updating the tinymce package in my project fixed the issue. Verified working after updating to 4.5.7 on Google Chrome v58 and Firefox v53. |
@z3nix tell Wordpress or your developer to update TinyMCE asap. I don't know why people are not using the CDN version in their integrations. |
What is the process for switching to a CDN for TinyMCE rather than having WordPress call it directly? Edit: Although our sites are 4.2.13, cloning the WordPress master branch and copying the wp-includes/js/tinymce folder over fixed it for us. |
This stopped working in one of my Drupal sites and Googling lead me here. Thanks, @teells for links to the changelog! |
Hello Chrome output: In also happens on clicking on media image previews. |
What version of tinymce are you using. We fixed this issue in the latest releases of 4.5 and 4.6. |
Can't reproduce this on 4.5.7 or 4.6.0 so need more info how to reproduce it. Possible provide a fiddle. |
Do you have a Mac with Chrome on it? I just donwloaded/tested with tinyMCE 4.6.0, same error on clicking an inserted image: |
@donShakespeare you're telling people on github to go talk to the IT guy, and this after telling other people their words aren't very helpful. The irony is a sharper tool than you. @ManyouRisms your method worked for me, running latest version of Wordpress and copying over the tinyMCE folder from the master Wordpress branch. |
Sorry for delay... Thats weird: I don't get any error on f.e. using your tinyMCE with Chrome but I got the error on my local machine (tinyMCE with Chrome). I'm not sure now if I did some missconfiguration of tinyMCE or so. I have to investigate it in detail. |
@z3nix perhaps you mistook my message. My point is for all and every user (IT or non techy or expert) to go query/inform WP that they are running outdated wares. It might be simple as logging an issue on their forum/github page with persistent backup of other users. I have fought hard for my own CMS to adopt CDN v4.6+ (from v3) It is not irony if you consider carefully; the more users inform WP, the more they are likely to integrate TinyMCE better. The one major reason people hate TinyMCE is that the version that they were forced to use was uber-outdated (and of course they did not know it; and then they switched to Redactor or some other shiny RTE) It is not convenient for users to manually update their CMS's TinyMCE core, as these changes might disappear when the CMS updates itself. Cheers |
Concerning the problem I mentioned above: Solved! Sorry, my bad: I probably had an older version of tinymce cached in Chrome. After empty cache all worked fine and no more errors! Sorry! |
Our codebase is highly customized, so we're stuck with Tiny MCE 3.x for now. Specifically, we're on version 3.5.9. The bug in this version of Tiny MCE is on line 304 of Quirks.js. The codebase for Tiny MCE has changed quite a bit since 3.5.9, so the fix provided in this thread can't be directly used. This Chromium Issue as well as the error message itself ("There is no child at offset 1") suggest that the core problem with this code is that an out-of-bound index is used. So, I simply tried changing the ...and for others on the 3.7 branch of Wordpress, here's the fix in context of the Wordpress minified file. I'm not familiar with this API at all - the change seems to work fine in my testing, but it seems too simple. What am I missing? What regression would I possibly introduce with this change? Or is |
@rinogo -- you're a lifesaver. I too am stuck with an older version of TinyMCE, and your fix (appears to have) solved the problem. I owe you a beer. |
Confirmed this is fixed on latest version of wordpress (4.7.4). |
@rinogo thanks for the fix, but just to note that it doesn't completely solve the issue for me with TinyMCE 4.4.3. For example replacing the image with 'mceInsertContent' doesn't seem to work, also deleting an image is a bit erratic. Still, the fix improves behaviour a lot. |
@mKowalski256 Thanks for the heads-up! If you devise a better fix, I'm sure we'd all be ecstatic! :) (And by the way, if you're on TinyMCE 4.x, you might have better luck with the "original" fix in this thread, nearer the top. Have you already tried that one?) |
Really need to upgrade if your stuck on 3.x, or you will continue to have these issues, just the last few months the Browsers vendors have been very active, screwing things up. And if your on ANY 4.x version, you should have no problems upgrading to 4.6.x. I am now closing this as this is fixed in later versions. |
For version 3 of TinyMCE the simplest fix is to change |
@EasyProWebTools - I was intrigued by your fix, so I gave it a shot in our code! It looks like it functions nearly identically to the slightly more complex version I posted above. The only difference is that in your shorter version, in Chrome, the image is "highlighted" in blue when it is clicked on as such:
Regardless, the slightly longer version I posted doesn't seem to show this blue "highlight" in Chrome. Note that it seems that in Safari, the image appears to be highlighted in blue in both of our versions. (Not sure how to "fix" this in Safari) The image doesn't appear to be highlighted in blue in Firefox in either of our versions. So, long story short - from my (admittedly limited) testing, it seems that the two solutions are nearly identical, with the ever-so-slight advantage going to the version I posted above. Just thought you (and others) might like to know! If there's some other functionality/differences I'm missing, I'd love to be enlightened! |
hahahahahahaha |
@rinogo I just tried that out in Firefox and can confirm this behaviour (see attachment). Its not nice but its not an issue that users can't proceed working. |
fixes chrome 58+ bug, see: tinymce/tinymce#3611
For the WP version 4.2.8 (wp 4.4.10) the fix provided by @EasyProWebTools also works with a little adjustment: |
Updated tinymce to latest working version (tinymce/tinymce#3611)
I have this issue too with TinyMce 4.7.4 hosted in electron app version 1.7.10, seems electron is using chrominum 58. Images in Tinymce editor cannot be selected and there is no exception log in the console. |
I was able to solve this for TinyMCE 4.2.3 (Rails integration). Maybe this could work for other versions. |
@EasyProWebTools and @ghapsis - the fix you provided actually solved my issue. I applied the fix on TinyMCE 4.1.3 (the installation is Wordress 4.1.1) and it worked. What I've changed is these two files:
The line that has been changes is this:
And it worked. Thanks to all! |
This bug also exist in suitecrm. Are there any fix for Suitecrm? |
Console
wp-tinymce.php:9 Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
at N. (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:9:19886)
at t.r [as fire] (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:8:9493)
at N.fire (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:9:26870)
at f.i (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:9:27935)
at i (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:3:5288)
at HTMLHtmlElement.m (/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=4104-20140822:3:5628)
The text was updated successfully, but these errors were encountered: