diff --git a/changelog.txt b/changelog.txt index 3068785..d87368c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/configurator.py b/configurator.py index 24ccbda..cbd27b4 100755 --- a/configurator.py +++ b/configurator.py @@ -268,6 +268,7 @@ INDEX = Template(""" if (n) { $.get("api/file?filename=" + n[0], function( data ) { editor.setValue(data); + editor.selection.selectFileStart(); }); } } diff --git a/dev.html b/dev.html index 34e827a..86a821e 100644 --- a/dev.html +++ b/dev.html @@ -219,6 +219,7 @@ if (n) { $.get("api/file?filename=" + n[0], function( data ) { editor.setValue(data); + editor.selection.selectFileStart(); }); } }