Opened 8 months ago
Closed 5 months ago
#63308 closed defect (bug) (fixed)
tinymce cache key should be updated
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.8.2 | Priority: | normal |
| Severity: | normal | Version: | 6.8 |
| Component: | TinyMCE | Keywords: | has-patch fixed-major |
| Focuses: | Cc: |
Description (last modified by )
when I paste a youtube link into wordpress classic editor, I get this error:
tinymce.min.js?ver=49110-20201110:2 Uncaught IndexSizeError: Failed to execute ‘setStart’ on ‘Range’: There is no child at offset 12. at Kh (tinymce.min.js?ver=49110-20201110:2:218016) at tN. (tinymce.min.js?ver=49110-20201110:2:410) at c.fire (tinymce.min.js?ver=49110-20201110:2:197006) at tN.fire (tinymce.min.js?ver=49110-20201110:2:197532) at ev.nodeChanged (tinymce.min.js?ver=49110-20201110:2:220592) at tN.nodeChanged (tinymce.min.js?ver=49110-20201110:2:345084) at tN. (tinymce.min.js?ver=49110-20201110:2:220079) at c.fire (tinymce.min.js?ver=49110-20201110:2:197006) at tN.fire (tinymce.min.js?ver=49110-20201110:2:197532) at Pp (tinymce.min.js?ver=49110-20201110:2:199169)
So, I tried to compare what I had with 6.7.2, turns out the issue is that there are small changes to TinyMCE (not sure since when) but the cache key (wp-includes/version.php) has not been updated for a while.
$tinymce_version = '49110-20201110';
For sites that have no cloudflare/similar cache, it might not make a difference, but those that might get an incorrect tinymce version and some errors...
Change History (10)
#1
follow-up:
↓ 2
@
5 months ago
- Component changed from Editor to TinyMCE
- Description modified (diff)
#2
in reply to:
↑ 1
@
5 months ago
Replying to sabernhardt:
[60007] edited TinyMCE-related files, but I did not find an update to
tinymce.min.js(ortinymce.js).
It seems like that version (49110-20201110) is being used for a lot of other URLs besides just tinymce.min.js though.
For example, when I try using the classic editor with SCRIPT_DEBUG set to true, it requests the URL wp-includes/js/tinymce/plugins/wordpress/plugin.js?wp-mce-49110-20201110 (but that is one of the files modified in [60007]).
#3
@
5 months ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 6.8.2
- Version set to 6.8
This ticket was mentioned in PR #9162 on WordPress/wordpress-develop by @sukhendu2002.
5 months ago
#4
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/63308
#5
@
5 months ago
- Owner set to audrasjb
- Status changed from new to reviewing
Hello and thanks for the ticket,
@oferlaor are you able to confirm the issue is fixed when you try to manually update the cache key on your side?
#8
@
5 months ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 6.8 branch backport.
Hi and welcome!
[60007] edited TinyMCE-related files, but I did not find an update to
tinymce.min.js(ortinymce.js).https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/vendor/tinymce