[wp-trac] [WordPress Trac] #45065: Include Gutenberg packages in WordPress core.

WordPress Trac noreply at wordpress.org
Fri Oct 12 11:43:53 UTC 2018

#45065: Include Gutenberg packages in WordPress core.
 Reporter:  omarreiss    |       Owner:  omarreiss
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.0
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:  javascript
Changes (by atimmer):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"43723" 43723]:
 #!CommitTicketReference repository="" revision="43723"
 Script loader: Register @wordpress scripts.

 This allows the packages to be consumed by plugins and core itself.
 The code has been based on the work done in the Gutenberg plugin.

 We've added an array with all the packages and the vendor packages to
 loop through. This sets a convention so all packages will be
 registered in the same way. This array can eventually be generated by
 a webpack plugin.

 We need to register TinyMCE explicitly. Previously TinyMCE was used
 by inserting custom `<script>` tags into the relevant admin pages.
 This is not suitable for the new editor, so we need to explicitly
 register TinyMCE. We could, in the future, refactor the custom
 `<script>` tags to use the registered TinyMCE script instead.

 Polyfills are inserted into the page only when necessary using

 Props omarreiss, herregroen, youknowriad, gziolo.
 Fixes #45065.

Ticket URL: <https://core.trac.wordpress.org/ticket/45065#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list