From 4862c4aa962aa91f5f2941a71ca1ec57eebf3a37 Mon Sep 17 00:00:00 2001 From: desrosj Date: Thu, 13 Dec 2018 16:50:36 +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 `