Browse Source

bugfix expecting wrong js file of ace.js (#536)

Co-authored-by: Ruud Faessen <r.faessen@mindef.nl>
pull/537/head
Ruud 6 years ago
committed by GitHub
parent
commit
a132301bf7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/app/framework/angular/forms/editors/code-editor.component.ts
  2. 2
      frontend/app/framework/angular/forms/editors/json-editor.component.ts

2
frontend/app/framework/angular/forms/editors/code-editor.component.ts

@ -83,7 +83,7 @@ export class CodeEditorComponent extends StatefulControlComponent<undefined, str
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(this.mode);

2
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');

Loading…
Cancel
Save