From 7f071ae43122243f3519be582956ac1f7a8d28ec Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 13 Dec 2018 16:49:58 +0000 Subject: [PATCH] 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 `