Add initial support for ThemePlugins

This commit is contained in:
Nick O'Leary
2021-01-26 13:35:40 +00:00
parent 8e7a230dbc
commit 1f6328bf4e
9 changed files with 127 additions and 20 deletions

View File

@@ -24,6 +24,9 @@ function registerPlugin(nodeSetId,id,definition) {
pluginToId[id] = nodeSetId;
plugins[id] = definition;
var module = registry.getModule(moduleId);
definition.path = module.path;
module.plugins[pluginId].plugins.push(definition);
if (definition.type) {
pluginsByType[definition.type] = pluginsByType[definition.type] || [];