Category : wysiwyg

I’m using Checkeditor for my Laravel 8 project. So after copying it’s folder to public directory, I added it to my blade: @section(‘script’) <script src="/backend/ckeditor/ckeditor.js"></script> <script> CKEDITOR.replace(‘body’,{ filebrowserUploadUrl : ‘/website/backend/panel/upload-image’, filebrowserImageUploadUrl : ‘/website/backend/panel/upload-image’ }) </script> @endsection And for the route, I added this: Route::post(‘/panel/upload-image’, [PanelController::class, ‘uploadImageSubject’]); And here is uploadImageSubject() method in PanelController.php class: public ..

Read more