// Global hooks
editor.on("component:create", function (model) {
return console.log('Global hook: component:create', model.get('type'));
});
editor.on("component:mount", function (model) {
return console.log('Global hook: component:mount', model.get('type'));
});
editor.on("component:update:testprop", function (model) {
return console.log('Global hook: component:update:testprop', model.get('type'));
});
editor.on("component:remove", function (model) {
return console.log('Global hook: component:remove', model.get('type'));
});