[wp-trac] [WordPress Trac] #45289: wp.editor.initialize not working
WordPress Trac
noreply at wordpress.org
Mon Nov 5 15:26:43 UTC 2018
#45289: wp.editor.initialize not working
---------------------------+-----------------------------
Reporter: otgschristian | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 5.0
Severity: normal | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
WP 4.8 introduced some js methods to dynamically initialise / remove
TinyMCE instances.
{{{
wp.editor.initialize()
wp.editor.remove()
wp.editor.getContent()
}}}
Working perfectly with last stable WP, but not with WP 5.0 (tested up to
beta 3). The functions are no longer defined:
{{{
wp.editor.initialize is not a function
}}}
References:
https://make.wordpress.org/core/2017/05/20/editor-api-changes-in-4-8/
https://codex.wordpress.org/Javascript_Reference/wp.editor
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45289>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list