|
|
@@ -1919,6 +1919,15 @@ Draw.loadPlugin(async function(ui) {
|
|
|
historyWrapper.newEmptyDiagram();
|
|
|
|
|
|
|
|
|
+ // HACK: disable undo
|
|
|
+ mxUndoManager.prototype.canUndo = function() {
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+ mxUndoManager.prototype.canRedo = function() {
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
// For debugging
|
|
|
document.addEventListener('keydown', e => {
|
|
|
// console.log(e);
|