Use an id rather than class name to reference the textarea (add id="editor" to the textarea).
I wouldn't recommend using an id, because it makes it more difficult to have multiple ckeditors on one page, so I always use just the class.
<textarea class="ckeditor" name="editor"></textarea>
To initialize it, just use:
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.