[wp-trac] [WordPress Trac] #45219: In Gutenberg in WordPress 5 beta wp.editor does not exists

WordPress Trac noreply at wordpress.org
Tue Oct 30 07:26:34 UTC 2018


#45219: In Gutenberg in WordPress 5 beta wp.editor does not exists
-------------------------------+------------------------------
 Reporter:  michielve          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Editor             |     Version:  5.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by michielve):

 Now I see why it didn't work. I used wp-cli to generate the block files
 and I saw that it generated the following code:

 {{{#!php
 wp_register_script(
         'myblock-block-editor',
         plugins_url( $index_js, __FILE__ ),
         array(
                 'wp-blocks',
                 'wp-i18n',
                 'wp-element',
         ),
         filemtime( "$dir/$index_js" )
 );
 }}}

 So without a 'wp-editor' dependency. Once I added it it worked. Thanks and
 sorry to bother you with this.

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


More information about the wp-trac mailing list