tocaan / ckeditor5
this package helps to ckeditor5 to your forms
Installs: 260
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 0
Open Issues: 0
pkg:composer/tocaan/ckeditor5
Requires
This package is auto-updated.
Last update: 2025-10-05 10:47:08 UTC
README
Installation
You can install the package via composer
composer require tocaan/ckeditor5
Publish the configuration file
php artisan vendor:publish --provider="Ckeditor5\CkEditor5ServiceProvider"
Usage
first you must append script and style files
to your layouts
{{-- styles --}} <link href="{{asset('ckeditor5/css/ckeditor.css')}}" rel="stylesheet" id="style_components" type="text/css" /> {{-- scripts --}} <script src="{{asset('ckeditor5/js/ckeditor.js')}}"></script> <script src="{{asset('ckeditor5/js/ckEditorScripts.js')}}"></script>
after appending script and style files , you can use it simple like this
field()->ckEditor5('name','label','value',[]);
don't forget to add this script on submitting your form
if (window.editors == undefined) { $.each(editors, function (index, editor) { editor.updateSourceElement() }); }