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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
frontend/app/framework/angular/forms/editors/code-editor.component.ts
-
frontend/app/framework/angular/forms/editors/json-editor.component.ts
|
|
@ -83,7 +83,7 @@ export class CodeEditorComponent extends StatefulControlComponent<undefined, str |
|
|
this.editor.nativeElement.style.height = `${this.height}px`; |
|
|
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 = ace.edit(this.editor.nativeElement); |
|
|
|
|
|
|
|
|
this.aceEditor.getSession().setMode(this.mode); |
|
|
this.aceEditor.getSession().setMode(this.mode); |
|
|
|
|
|
@ -59,7 +59,7 @@ export class JsonEditorComponent extends StatefulControlComponent<{}, string> im |
|
|
this.editor.nativeElement.style.height = `${this.height}px`; |
|
|
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 = ace.edit(this.editor.nativeElement); |
|
|
|
|
|
|
|
|
this.aceEditor.getSession().setMode('ace/mode/javascript'); |
|
|
this.aceEditor.getSession().setMode('ace/mode/javascript'); |
|
|
|