From 9891b96edf118339d7d1ff331dea45c8001b6f92 Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Sun, 8 May 2022 22:00:57 +0530 Subject: [PATCH] fix: don't register focus plugin twice --- projects/ngx-editor/src/lib/editor.component.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/ngx-editor/src/lib/editor.component.ts b/projects/ngx-editor/src/lib/editor.component.ts index fd546feb..37ff3ed7 100644 --- a/projects/ngx-editor/src/lib/editor.component.ts +++ b/projects/ngx-editor/src/lib/editor.component.ts @@ -95,10 +95,6 @@ export class NgxEditorComponent implements ControlValueAccessor, OnInit, OnChang this.focusIn.emit(); })); - this.editor.registerPlugin(plugins.focus(() => { - this.focusIn.emit(); - })); - this.editor.registerPlugin(plugins.blur(() => { this.focusOut.emit(); this.onTouched();