[wp-trac] [WordPress Trac] #53437: Widgets Screen: wp.editor.initialize is not a function notice

WordPress Trac noreply at wordpress.org
Fri Jul 9 01:09:23 UTC 2021


#53437: Widgets Screen: wp.editor.initialize is not a function notice
------------------------------+-----------------------
 Reporter:  noisysocks        |       Owner:  zieladam
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  5.8
Component:  Widgets           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------

Comment (by noisysocks):

 In [changeset:"51387" 51387]:
 {{{
 #!CommitTicketReference repository="" revision="51387"
 Editor: Merge conflicting wp.editor objects into single, non-conflicting
 object

 The `wp-editor` script (`@wordpress/editor` npm package) is exposed as
 `window.wp.editor` in WP Admin.  This causes problems, though, as many
 older
 scripts expect to see the older `editor` script available at
 `window.wp.editor`.

 The solution is to export all the members of the older `window.wp.editor`
 module
 in the newer module to maintain backwards compatibility.

 See #53437.
 Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53437#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list