mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(edit) beautify: add clearSelection, moveCursor to begin
This commit is contained in:
parent
b65cba7410
commit
b5f33350fc
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue