From f3e9769467c47080509f217387f8a18bc253b7e5 Mon Sep 17 00:00:00 2001 From: Mike Frawley Date: Fri, 8 Oct 2021 15:09:08 -0500 Subject: [PATCH] Remove call to CKEDITOR.removeAllListeners() This screws up widget placeholder deletion in subsequent editors that are created - possibly because the new editor gets created first, then this gets called, as this is run async in a zone. this.instance.destroy(); is good enough. I looked in to it in ckeditor and it calls this.removeAllListeners(), removing its own listeners and not other ckeditor instance listeners --- src/ckeditor.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ckeditor.component.ts b/src/ckeditor.component.ts index 5727b56..cf44e9e 100644 --- a/src/ckeditor.component.ts +++ b/src/ckeditor.component.ts @@ -91,7 +91,6 @@ export class CKEditorComponent implements OnChanges, AfterViewInit, OnDestroy { this.destroyed = true; this.zone.runOutsideAngular(() => { if (this.instance) { - CKEDITOR.removeAllListeners(); this.instance.destroy(); this.instance = null; }