diff --git a/frontend/app/framework/angular/forms/editors/code-editor.component.ts b/frontend/app/framework/angular/forms/editors/code-editor.component.ts index b460774f2..bf4d6a10f 100644 --- a/frontend/app/framework/angular/forms/editors/code-editor.component.ts +++ b/frontend/app/framework/angular/forms/editors/code-editor.component.ts @@ -83,7 +83,7 @@ export class CodeEditorComponent extends StatefulControlComponent { + this.resourceLoader.loadLocalScript('dependencies/ace/ace.js').then(() => { this.aceEditor = ace.edit(this.editor.nativeElement); this.aceEditor.getSession().setMode(this.mode); diff --git a/frontend/app/framework/angular/forms/editors/json-editor.component.ts b/frontend/app/framework/angular/forms/editors/json-editor.component.ts index 89538127b..b38f9a6f1 100644 --- a/frontend/app/framework/angular/forms/editors/json-editor.component.ts +++ b/frontend/app/framework/angular/forms/editors/json-editor.component.ts @@ -59,7 +59,7 @@ export class JsonEditorComponent extends StatefulControlComponent<{}, string> im this.editor.nativeElement.style.height = `${this.height}px`; } - this.resourceLoader.loadLocalScript('dependencies/ace/ace.min.js').then(() => { + this.resourceLoader.loadLocalScript('dependencies/ace/ace.js').then(() => { this.aceEditor = ace.edit(this.editor.nativeElement); this.aceEditor.getSession().setMode('ace/mode/javascript');