Category : ckeditor

I’m trying to use some ritch text editors with livewire. I’ve used code from here https://laracasts.com/discuss/channels/laravel/how-to-bind-ckeditor-value-to-laravel-livewire-component but it gets error in console CKEditorError: this.viewElement.ownerDocument.body is null My code: <div class="form-textarea w-full" x-data x-init=" console.log($refs.myIdentifierHere) ClassicEditor.create($refs.myIdentifierHere) .then( function(editor){ editor.model.document.on(‘change:data’, () => { $dispatch(‘input’, editor.getData()) }) }) .catch( error => { console.error( error ); } ); " ..

Read more

I am trying to use CKEditor with Laravel 7 to edit rich text. However, the image upload is not working. I have search for solutions online and they suggest to use: config.filebrowserUploadMethod = ‘form’; But adding this line does not solve my problem. I am getting an "undifined" and "server error" Here is my code ..

Read more

I’m using CKEditor and Laravel, but when I try to put a text in bold or color, Laravel won’t insert it in my database, can you help me to solve this ? Here is my controller : { $validator = Validator::make($request->all(), [ ‘title’ => ‘required|string|min:5|max:256’, ‘body’ => ‘required|string|min:5|max:500000’, ]); if ($validator->fails()) { flash(‘Une erreur est ..

Read more

I’m using ckeditor 5 simple upload with laravel, however when I upload any image an alert with "localhost says Cannot upload file: undefined." I’m using the package below https://github.com/shino47/ckeditor5-build-laravel-image My js sample code looks like below:- $(document).ready(function() { var cb = function() { return (new Date()).getTime() } ClassicEditor.create(document.querySelector(‘#editor’), { simpleUpload: { uploadUrl: { url: ‘http://localhost/myendpoint’ ..

Read more

In my application, there is a textarea and I’ve used CK Editor for it. Now I want to check whether user has input something to it (except whitespace). There were some methods for this. But nothing worked for me. It throws an undefined error when I use it. Textarea <div class=”form-group {{ $errors->has(‘template_content’) ? ‘has-error’ ..

Read more