TypeError: this.editors.add is not a function
at dr._addEditor (context.ts:248:1)
at bP.sg [as constructor] (editor.ts:292:1)
at bP._class5 [as constructor] (elementapimixin.ts:61:1)
at bP.Vw [as constructor] (decouplededitor.ts:88:1)
at new bP (ckeditor.ts:31:1)
at decouplededitor.ts:266:1
at new Promise ()
at Function.create (decouplededitor.ts:259:1)
at e._render_ckeditor (ckeditor5.js:48:1)
at e._require_ckeditor (ckeditor5.js:26:1)
β Possible solution
I try to import Collection from "@ckeditor/ckeditor5-utils" and new a Collection, like this:
let editors = new Collection();
console.log(editors.add);
but still print the editors.add is not a function.
π Provide detailed reproduction steps (if any)
βοΈ Expected result
editor create success
β Actual result
TypeError: this.editors.add is not a function at dr._addEditor (context.ts:248:1) at bP.sg [as constructor] (editor.ts:292:1) at bP._class5 [as constructor] (elementapimixin.ts:61:1) at bP.Vw [as constructor] (decouplededitor.ts:88:1) at new bP (ckeditor.ts:31:1) at decouplededitor.ts:266:1 at new Promise ()
at Function.create (decouplededitor.ts:259:1)
at e._render_ckeditor (ckeditor5.js:48:1)
at e._require_ckeditor (ckeditor5.js:26:1)
β Possible solution
I try to import Collection from "@ckeditor/ckeditor5-utils" and new a Collection, like this:
let editors = new Collection(); console.log(editors.add);
but still print the editors.add is not a function.
π Other details