Commit 6bb7f773 by Mitsuhiro Tanda Committed by Torkel Ödegaard

use ace editor in panel edit (#10245)

parent 78fb5be2
......@@ -38,6 +38,8 @@ import 'brace/mode/sql';
import 'brace/snippets/sql';
import 'brace/mode/markdown';
import 'brace/snippets/markdown';
import 'brace/mode/json';
import 'brace/snippets/json';
const DEFAULT_THEME_DARK = "ace/theme/grafana-dark";
const DEFAULT_THEME_LIGHT = "ace/theme/textmate";
......
......@@ -11,7 +11,7 @@
<div class="tabbed-view-body">
<div class="gf-form">
<textarea class="gf-form-input" ng-model="json" rows="20" spellcheck="false"></textarea>
<code-editor content="json" data-mode="json" data-max-lines=40 ></code-editor>
</div>
<div class="gf-form-button-row">
......
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