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); } /**