[wp-trac] [WordPress Trac] #19173: Issues with wp_editor() when used inside of a meta box.
WordPress Trac
noreply at wordpress.org
Mon Jan 11 12:20:58 UTC 2021
#19173: Issues with wp_editor() when used inside of a meta box.
-------------------------------------+------------------------------
Reporter: goto10 | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by grapestain):
I have an issue on a site now with `wp_editor()` inside a MetaBox, which
seems to be related, but it is not caused by moving the MetaBoxes around.
It looks more like a race condition or so, because approx. 50% of the
times the edit post page is loaded the editors do not work. I assume there
may be some other things on the same page, which cause some critical DOM
changes, and when those changes finish before TinyMCE is initialised, the
editors work, but other times they not. Reloading the page few times
causes them to work, as the issue is intermittent, but it is less than
ideal. But this is only an assumption.
Unfortunately I see no errors in the console or any other clear indication
of the problem.
On one hand I'm writing this so we can see if others have similar issues
too?
On the other hand I'm wondering if someone could help with a piece of JS
that would reinitialise the editors, so I could just add them to the page
with a bit of a sleepdelay after load as a dirty workaround.
FF v84.0.2
WP v5.6
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19173#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list