@ -1173,14 +1173,6 @@
},
});
editor.on('storage:store', function(store) {
console.log('Stored', store);
editor.on('storage:load', function(loaded) {
console.log('Loaded', loaded);
editor.render();
</script>
</body>
@ -180,10 +180,12 @@ module.exports = () => {
if(!d && c.stm)
d = c.stm.load(name);
var assets = [];
try{
assets = JSON.parse(d[name]);
}catch(err){}
this.getAll().add(assets);
this.getAll().reset(assets);
return assets;
@ -217,13 +217,9 @@ module.exports = () => {
}else if(d.html)
obj = d.html;
console.log(obj);
if (obj) {
console.log('Before', this.getComponents().length);
this.clear();
this.getComponents().reset(obj);
console.log('After', this.getComponents().length);
}
return obj;