Show More
@@ -35,7 +35,11 b' function($,' | |||
|
35 | 35 | this.contents.get(this.file_path, {type: 'file', format: 'text'}) |
|
36 | 36 | .then(function(model) { |
|
37 | 37 | cm.setValue(model.content); |
|
38 | ||
|
38 | ||
|
39 | // Setting the file's initial value creates a history entry, | |
|
40 | // which we don't want. | |
|
41 | cm.clearHistory(); | |
|
42 | ||
|
39 | 43 | // Find and load the highlighting mode |
|
40 | 44 | var modeinfo = CodeMirror.findModeByMIME(model.mimetype); |
|
41 | 45 | if (modeinfo) { |
General Comments 0
You need to be logged in to leave comments.
Login now