[wp-trac] [WordPress Trac] #58648: Error: tinymce is not defined in post-new.php
WordPress Trac
noreply at wordpress.org
Tue Jun 27 22:26:45 UTC 2023
#58648: Error: tinymce is not defined in post-new.php
---------------------------+-------------------------
Reporter: joemcgill | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.3
Component: Script Loader | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: performance |
---------------------------+-------------------------
The E2E tests began showing a `tinymce is not defined` error, which can be
replicated in trunk by visiting the post edit screen and checking the
developer console.
After some debugging, this looks like it's due to an inline script that is
printed after the tinymce scripts in `print_tinymce_scripts()`. For some
reason, this function is causing the tinymce scripts to be printed with an
`async` loading strategy, which result in the inline script being loaded
before the tinymce scripts have loaded. This is likely related to [56033].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58648>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list