@ -51,6 +51,8 @@
* * `stop:{commandName}` - Triggered when some command is called to stop (eg. editor.stopCommand('preview'))
* ## General
* * `canvasScroll` - Triggered when the canvas is scrolle
* * `undo` - Undo executed
* * `redo` - Redo executed
* * `load` - When the editor is loaded
*
* @param {Object} config Configurations
@ -61,6 +61,7 @@ module.exports = () => {
const events = ['style', 'attributes', 'content', 'src'];
events.forEach(ev => um.addUndoType(`change:${ev}`, customUndoType));
um.on('undo redo', () => em.trigger('change:selectedComponent change:canvasOffset'));
['undo', 'redo'].forEach(ev => um.on(ev, () => em.trigger(ev)));
return this;
},