[wp-trac] [WordPress Trac] #45065: Include Gutenberg packages in WordPress core.
WordPress Trac
noreply at wordpress.org
Thu Dec 13 16:50:02 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: fixed-5.0 | Focuses: javascript
-------------------------+-------------------------
Changes (by desrosj):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"44114" 44114]:
{{{
#!CommitTicketReference repository="" revision="44114"
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
`document.write`.
Props omarreiss, herregroen, youknowriad, gziolo, atimmer.
Merges [43723] to trunk.
Fixes #45065.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45065#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list