in src/app/code/code.component.ts [68:88]
ngAfterViewInit() {
this.instance = CodeMirror.fromTextArea(
this.host.nativeElement,
{
value: this.value ? this.value : '',
mode: this.mode,
lineNumbers: true,
lineWrapping: true
}
);
this.instance.on('change', () => {
this.updateValue(this.instance.getValue());
});
this.instance.setOption('extraKeys', {
'Ctrl-Enter': () => {
this.query.emit(true);
}
});
}