mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
use ace editor in panel edit (#10245)
This commit is contained in:
parent
78fb5be2cf
commit
6bb7f77346
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user