Commit 22a7fcab authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7620 from zzet/patch-11

Add search in textarea
parents da55f2d9 f9c7f414
......@@ -26,6 +26,7 @@
#= require branch-graph
#= require highlight.pack
#= require ace/ace
#= require ace/ext-searchbox
#= require d3
#= require underscore
#= require nprogress
......
......@@ -41,6 +41,7 @@
:javascript
ace.config.set("modePath", gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}/ace")
ace.config.loadModule("ace/ext/searchbox");
var ace_mode = "#{@blob.language.try(:ace_mode)}";
var editor = ace.edit("editor");
editor.setValue("#{escape_javascript(@blob.data)}");
......
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