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:
parent
72fb1e22ed
commit
6dce8d9763
@ -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;
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user