diff --git a/index.html b/index.html
index 75d5367ad..d662470d1 100755
--- a/index.html
+++ b/index.html
@@ -1126,6 +1126,39 @@
});
+
+ window.editor = editor;
+
+ var pnm = editor.Panels;
+ pnm.addButton('options', [{
+ id: 'undo',
+ className: 'fa fa-undo icon-undo',
+ command: function(editor, sender) {
+ sender.set('active', 0);
+ editor.UndoManager.undo(1);
+ },
+ attributes: { title: 'Undo (CTRL/CMD + Z)'}
+ },{
+ id: 'redo',
+ className: 'fa fa-repeat icon-redo',
+ command: function(editor, sender) {
+ sender.set('active', 0);
+ editor.UndoManager.redo(1);
+ },
+ attributes: { title: 'Redo (CTRL/CMD + SHIFT + Z)' }
+ },{
+ id: 'clean-all',
+ className: 'fa fa-trash icon-blank',
+ command: function(editor, sender) {
+ if(sender) sender.set('active', false);
+ if(confirm('Are you sure to clean the canvas?')) {
+ var comps = editor.DomComponents.clear();
+ localStorage.clear();
+ }
+ },
+ attributes: { title: 'Empty canvas' }
+ }]);
+
editor.render();