summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/edit_tree/show.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/edit_tree/show.html.haml b/app/views/edit_tree/show.html.haml
index e7bdeb39e72..509205436ea 100644
--- a/app/views/edit_tree/show.html.haml
+++ b/app/views/edit_tree/show.html.haml
@@ -30,6 +30,7 @@
= link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-cancel", confirm: "Are you sure?"
:javascript
+ ace.config.set("modePath", "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict")
var ace_mode = "#{@blob.language.try(:ace_mode)}";
var editor = ace.edit("editor");
if (ace_mode) {