1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Remove final vestiges of undo/redo buttons

This commit is contained in:
Jermolene 2016-05-01 13:54:16 +01:00
parent 72fb1e22ed
commit 6dce8d9763
3 changed files with 0 additions and 28 deletions

View File

@ -136,12 +136,6 @@ SimpleEngine.prototype.createTextOperation = function() {
return null;
};
/*
Execute a command
*/
SimpleEngine.prototype.execCommand = function() {
};
/*
Execute a text operation
*/

View File

@ -292,13 +292,6 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
return !this.parentDomNode.dispatchEvent(newEvent);
};
/*
Execute the specified command on the current engine
*/
EditTextWidget.prototype.execCommand = function(command /*, <args> */) {
this.engine.execCommand.apply(this.engine,Array.prototype.slice.call(arguments,0));
};
return EditTextWidget;
}

View File

@ -152,21 +152,6 @@ CodeMirrorEngine.prototype.executeTextOperation = function(operation) {
return newText;
};
/*
Execute a command
*/
CodeMirrorEngine.prototype.execCommand = function(command) {
this.cm.focus();
switch(command) {
case "undo":
this.cm.execCommand("undo", false, null);
break;
case "redo":
this.cm.execCommand("redo", false, null);
break;
}
};
exports.CodeMirrorEngine = CodeMirrorEngine;
})();