Changes between Version 3 and Version 4 of Ticket #19173, comment 35
- Timestamp:
- 01/11/2021 01:14:00 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19173, comment 35
v3 v4 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 1.5s after `window.onload`, and now it works fine. Still don't know whatthe root cause though...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 the root cause though... 10 10 11 11 FF v84.0.2