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