Well, based on the error, I'm pretty sure you forgot to import the ClassicEditor object or maybe something were changed lately. could I see your app.js file or just the block that imply it?
/** CKEditor 5*/
import ClassicEditor from '@ckeditor/ckeditor5-build-classic/build/ckeditor';
window.ClassicEditor = ClassicEditor;
I don't know if I have to import it or add an additional setup right at the app.blade.php layout file, so that, it can be used in the rest of the views.
I have tried to use that @push directive, but it's not working on my code either. But when I put that ClassicEditor script normally at the end of <body> tag, it works. Maybe you have to make sure the js script execution is in order properly.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello. I have followed what you've written so far, but I can't get CKEditor 5 to work from an npm installation.
I get the following error (in the console log of the inspect element):
"Uncaught ReferenceError: ClassicEditor is not defined"
What am I missing? How do I make it work?
Well, based on the error, I'm pretty sure you forgot to import the
ClassicEditor
object or maybe something were changed lately. could I see yourapp.js
file or just the block that imply it?Hello! My
app.js
looks like:I don't know if I have to import it or add an additional setup right at the
app.blade.php
layout file, so that, it can be used in the rest of the views.Then, in a view, I try to call it like this:
But the CKEditor does not show up and I get the following error in the console log:
Any ideas on how to fix it to make it work?
I have tried to use that
@push
directive, but it's not working on my code either. But when I put that ClassicEditor script normally at the end of<body>
tag, it works. Maybe you have to make sure the js script execution is in order properly.