From aad59f3d861db447f16cf75008e4d510e03564c6 Mon Sep 17 00:00:00 2001 From: fecoooooooo <44339679+fecoooooooo@users.noreply.github.com> Date: Wed, 16 Feb 2022 11:11:50 +0100 Subject: [PATCH] Update angular-editor.component.ts Using (html) throws the error: "ERROR Error: @Output html not initialized in 'AngularEditorComponent'." --- projects/angular-editor/src/lib/angular-editor.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/angular-editor/src/lib/angular-editor.component.ts b/projects/angular-editor/src/lib/angular-editor.component.ts index 4fdc552b..a6e3c4ac 100644 --- a/projects/angular-editor/src/lib/angular-editor.component.ts +++ b/projects/angular-editor/src/lib/angular-editor.component.ts @@ -58,7 +58,7 @@ export class AngularEditorComponent implements OnInit, ControlValueAccessor, Aft @Input() placeholder = ''; @Input() tabIndex: number | null; - @Output() html; + @Output() html = new EventEmitter(); @ViewChild('editor', {static: true}) textArea: ElementRef; @ViewChild('editorWrapper', {static: true}) editorWrapper: ElementRef; @@ -220,6 +220,7 @@ export class AngularEditorComponent implements OnInit, ControlValueAccessor, Aft } } this.changed = true; + this.html.emit(html); } /**