Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #19173, comment 35


Ignore:
Timestamp:
01/11/2021 01:14:00 PM (4 years ago)
Author:
grapestain
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19173, comment 35

    v3 v4  
    77I'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...
    88
    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...
     9Amyway, 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...
    1010
    1111FF v84.0.2