blob: b9469e5b7cb85222b085f623a8a0e74e8e473137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
export default 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;
});
}
}
|