this.onTouched is not a function - on typing anything in ckeditor
See original GitHub issueError on typing anything in CKEditor in Chrome Browser console.
core.js:6210 ERROR TypeError: this.onTouched is not a function
at a.<anonymous> (ng2-ckeditor.js:234)
at a.k (ckeditor.js:10)
at a.<anonymous> (ckeditor.js:12)
at a.push.n2S2.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
at CKEDITOR.plugins.undo.UndoManager.type (ckeditor.js:1136)
at CKEDITOR.plugins.undo.NativeEditingHandler.onKeyup (ckeditor.js:1146)
at c.k (ckeditor.js:10)
at c.fire (ckeditor.js:12)
at HTMLDivElement.<anonymous> (ckeditor.js:63)
at ZoneDelegate.invokeTask (zone-evergreen.js:406)
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
What is the reason for "ERROR TypeError: this.onChange is ...
While the type of onChange is a function, I don't see anything actually setting the value, it is undefined (hence, not a function)....
Read more >Class Editor (CKEDITOR.editor) - CKEditor 4 API docs
Represents an editor instance. This constructor should be rarely used in favor of the CKEDITOR editor creation functions.
Read more >Error on console: "b is not a function" | CKEditor.com Forums
Hi!! When the ckeditor is loaded, the console displays an error: b is not a function ...ar b=this.languages,e=e||navigator.
Read more >Class Element (CKEDITOR.dom.element) - CKEditor 4 API docs
CKEDITOR.dom.element. class. Properties. $; type; useCapture. Methods.
Read more >Custom Query – CKEditor
R is not a function [Break on this error] y. ... Not something about patents or anything, just the fact that in most...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am able to reproduce this issue with a very simple setup here: https://stackblitz.com/edit/angular-ivy-1l2rbr?devtoolsheight=33&file=src/app/app.component.ts
Note that all of the suggestions provided by @kzimny are followed in this example
I was able to resolve this issue by binding to ngModel of the ckeditor component.
The error occurs because you didn’t stricktly follow the sample instruction. Please look at the demo.