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

WordPress Trac noreply at wordpress.org
Wed Jul 7 16:42:42 UTC 2021


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

Comment (by spacedmonkey):

 I also believe we should update the references to `wp.editor` in the text
 widget.
 There are 4 references. [https://github.com/WordPress/wordpress-
 develop/blob/953e1c5f8313a89d4d3b99ab5996b4660045c976/src/js/_enqueues/wp/widgets/text.js#L164
 1], [https://github.com/WordPress/wordpress-
 develop/blob/953e1c5f8313a89d4d3b99ab5996b4660045c976/src/js/_enqueues/wp/widgets/text.js#L240-L243
 2], [https://github.com/WordPress/wordpress-
 develop/blob/953e1c5f8313a89d4d3b99ab5996b4660045c976/src/js/_enqueues/wp/widgets/text.js#L251
 3] and [https://github.com/WordPress/wordpress-
 develop/blob/953e1c5f8313a89d4d3b99ab5996b4660045c976/src/js/_enqueues/wp/widgets/text.js#L265-L271
 4]. The text widget should not use `wp.editor` for tinymce, it should be a
 good example.

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


More information about the wp-trac mailing list