fixed code editor doesn't show issue when user clicks new button.

`loadFile()` seems to be setting a lot of the `editor` config options, could you please move `editor.setValue()` both the **if-else** conditionals seem to be using it anyway.