Please sign in to comment.
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. Fixes #45065. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43723 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information
Showing with 542 additions and 2 deletions.
Oops, something went wrong.