tocaan / ckeditor5
There is no license information available for the latest version (dev-main) of this package.
this package helps to ckeditor5 to your forms
dev-main
2023-01-18 15:49 UTC
Requires
This package is auto-updated.
Last update: 2024-11-18 19:38:25 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() }); }