use ace editor in panel edit (#10245)

This commit is contained in:
Mitsuhiro Tanda 2017-12-18 22:29:23 +09:00 committed by Torkel Ödegaard
parent 78fb5be2cf
commit 6bb7f77346
2 changed files with 3 additions and 1 deletions

View File

@ -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";

View File

@ -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">