feature(edit) beautify: add clearSelection, moveCursor to begin

This commit is contained in:
coderaiser 2014-10-23 07:30:01 -04:00
parent b65cba7410
commit b5f33350fc

View file

@ -487,6 +487,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
RESTful.read(path + '?beautify', function(data) {
Ace.setValue(data);
Ace.clearSelection();
Ace.moveCursorTo(0, 0);
});
};