mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-17 12:24:28 +00:00
Remove final vestiges of undo/redo buttons
This commit is contained in:
1 parent
72fb1e22ed
commit
6dce8d9763
3 files changed
-28
No files matched your search
@@ -136,12 +136,6 @@ SimpleEngine.prototype.createTextOperation = function() {
|
||||
return null;
|
||||
};
|
||||
|
||||
/*
|
||||
Execute a command
|
||||
*/
|
||||
SimpleEngine.prototype.execCommand = function() {
|
||||
};
|
||||
|
||||
/*
|
||||
Execute a text operation
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
})();
|
||||
Reference in new issue
Block a user