Loading files doesn't select whole text anymore

This commit is contained in:
Daniel 2017-02-02 22:37:03 +00:00
parent 2428b897b4
commit 6fa0b462b3
3 changed files with 3 additions and 0 deletions

View file

@ -4,6 +4,7 @@ Version 0.0.8 (2017-02-nn)
- Changes to toolbar with extended editor settings
- Editor settings saved when Save-dialog is shown
- Allow setting file extensions to be shown in browser
- Loading files doesn't select whole text anymore
Version 0.0.7 (2017-02-01)
- Inserted elements are selected as visual feedback

View file

@ -268,6 +268,7 @@ INDEX = Template("""<!DOCTYPE html>
if (n) {
$.get("api/file?filename=" + n[0], function( data ) {
editor.setValue(data);
editor.selection.selectFileStart();
});
}
}

View file

@ -219,6 +219,7 @@
if (n) {
$.get("api/file?filename=" + n[0], function( data ) {
editor.setValue(data);
editor.selection.selectFileStart();
});
}
}