Commit 204bd0b0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3814 from tsl0922/fix-ace-mode-404

fix ace editor Syntax Highlighter mode load 404
parents f23d01b7 01817135
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
= link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-cancel", confirm: "Are you sure?" = link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-cancel", confirm: "Are you sure?"
:javascript :javascript
ace.config.set("modePath", "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict")
var ace_mode = "#{@blob.language.try(:ace_mode)}"; var ace_mode = "#{@blob.language.try(:ace_mode)}";
var editor = ace.edit("editor"); var editor = ace.edit("editor");
if (ace_mode) { if (ace_mode) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment