blob: dd4a08a2f315006cbd3f439500c7f8b8e290c657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
window.gl = window.gl || {};
class CILintEditor {
constructor() {
this.editor = window.ace.edit('ci-editor');
this.textarea = document.querySelector('#content');
this.editor.getSession().setMode('ace/mode/yaml');
this.editor.on('input', () => {
const content = this.editor.getSession().getValue();
this.textarea.value = content;
});
}
}
gl.CILintEditor = CILintEditor;
|