question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this.onTouched is not a function - on typing anything in ckeditor

See original GitHub issue

Error 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:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
MBDesucommented, Sep 19, 2021

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.

1reaction
kzimnycommented, Sep 20, 2021

Note that all of the suggestions provided by @kzimny are followed in this example

The error occurs because you didn’t stricktly follow the sample instruction. Please look at the demo.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found