mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
set give focus in code editor
This commit is contained in:
@@ -110,6 +110,9 @@ function link(scope, elem, attrs) {
|
||||
elem.addClass("gf-code-editor");
|
||||
let textarea = elem.find("textarea");
|
||||
textarea.addClass('gf-form-input');
|
||||
if (attrs.giveFocus) {
|
||||
textarea.attr('give-focus', attrs.giveFocus);
|
||||
}
|
||||
|
||||
// Event handlers
|
||||
editorSession.on('change', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user