From c8625c33ee084498b2faddef8932aff88856fadd Mon Sep 17 00:00:00 2001 From: atimmer Date: Sat, 13 Oct 2018 03:51:14 +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 `