editor/editor.component.ts
Editor component for displaying and editing code
Based on the monaco editor (the same editor as in VS Code) Supports syntax highlighting for various languages (default: JSON) and can be extended with additional features like JSON schema validation
AfterViewInit
OnDestroy
ControlValueAccessor
OnChanges
| providers |
)
|
| selector | c8y-editor |
| standalone | true |
| imports |
NgIf
|
| templateUrl | ./editor.component.html |
<c8y-loading *ngIf="!monaco"></c8y-loading>
<div class="editor-container" style="height: 100%" #editorContainer></div>