Changes between Version 2 and Version 3 of Ticket #19173, comment 35
- Timestamp:
- 01/11/2021 01:13:47 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19173, comment 35
v2 v3 7 7 I've monkey patched my `editor.js` & `postbox.js` (and the minified ones), but when I try to run `wp.editor.reinit_metabox_editors()` from the console, it says `wp.editor.reinit_metabox_editors is not a function`. Actually the `reinit_metabox_editors()` function is exposed under `switchEditors.reinit_metabox_editors()`. Maybe I've done something wrong... 8 8 9 Amyway, just for reference, I've after all included `function reinit_metabox_editors()` from the patch as a standalone function in a separate JS file, and set up into the edit post pages to run at `window.onload`, and now it looks fine.9 Amyway, just for reference, I've after all included `function reinit_metabox_editors()` from the patch as a standalone function in a separate JS file, and set up into the edit post pages to run 1.5s after `window.onload`, and now it works fine. Still don't know what the root cause though... 10 10 11 11 FF v84.0.2