mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(stacks): update web editor to set tab key to insert spaces (#2735)
This commit is contained in:
parent
da44f14e07
commit
c152d3f62e
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ angular.module('portainer.app')
|
|||
var codeMirrorYAMLOptions = {
|
||||
mode: 'text/x-yaml',
|
||||
gutters: ['CodeMirror-lint-markers'],
|
||||
lint: true
|
||||
lint: true,
|
||||
extraKeys: {
|
||||
Tab: function(cm) {
|
||||
var spaces = Array(cm.getOption('indentUnit') + 1).join(' ');
|
||||
cm.replaceSelection(spaces);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
service.applyCodeMirrorOnElement = function(element, yamlLint, readOnly) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue