Several fixes added.

This commit is contained in:
Paulo Veiga
2011-08-04 22:12:53 -03:00
parent 63cda0a170
commit 0b3083d50c
14 changed files with 129 additions and 7771 deletions

View File

@@ -131,13 +131,8 @@ mindplot.TextEditor = new Class({
var text = this.getText();
var topicId = this._currentNode.getId();
var commandFunc = function(topic, value) {
var result = topic.getText();
topic.setText(value);
return result;
};
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, text, [topicId]);
this._actionRunner.execute(command);
var actionDispatcher = mindplot.ActionDispatcher.getInstance();
actionDispatcher.changeTextOnTopic([topicId], text);
}
},