pranabkalita / blade-ckeditor
Ckeditor 5 for Laravel
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
This package is auto-updated.
Last update: 2024-09-20 12:09:31 UTC
README
This is a Livewire component which allows to add basic CkEditor 5 integration to your Laravel app.
Requirements
- PHP >= 8.2
- Laravel >= 9
- Livewire >= 2
- AlpineJs >= 2
Steps
- Install package:
composer require pranabkalita/blade-ckeditor
- Publish Assets:
php artisan vendor:publish --tag=blade-ckeditor
- Add the following directives in you layout file
<head> ... @ckeditorStyles </head> <body> ... @alpineJs // Not required for Livewire >= 3 @ckeditorScripts </body>
- In your blade file:
<x-blade-ckeditor wire:model="body" />
- For edit purpose you must provide the initialContent props like below
<x-ckeditor wire:model="body" :initialContent="$body" />
Roadmaps
Since this is new package. No custom options are available yet. Will be working on it and pushing out regular updates with new features.
- Get rid of :initialContent and make it work with
wire:mode
iteself. - Use the ability to select the editor version i.e
WYSIWYG
orMarkdown
.