Package Data | |
---|---|
Maintainer Username: | JeroenNoten |
Maintainer Contact: | jeroennoten@me.com (Jeroen Noten) |
Package Create Date: | 2016-07-14 |
Package Last Update: | 2017-11-16 |
Home Page: | |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-11-19 03:08:47 |
Package Statistics | |
---|---|
Total Downloads: | 20,713 |
Monthly Downloads: | 32 |
Daily Downloads: | 2 |
Total Stars: | 55 |
Total Watchers: | 4 |
Total Forks: | 33 |
Total Open Issues: | 12 |
This package provides an easy way to set up CKEditor with Laravel 5.
I think CKEditor is the best free WYSIWYG editors available.
This package makes it super easy to use the editor with Laravel 5.
It provides a custom blade directive @ckeditor('textareaId')
to quickly integrate it in your forms.
Require the package using composer:
composer require jeroennoten/laravel-ckeditor
Add the service provider to the providers
in config/app.php
:
JeroenNoten\LaravelCkEditor\ServiceProvider::class,
Publish the public assets:
php artisan vendor:publish --tag=ckeditor-assets
To update this package, first update the composer package:
composer update jeroennoten/laravel-ckeditor
Then, publish the public assets with the --force
flag to overwrite existing files
php artisan vendor:publish --tag=ckeditor-assets --force
The package provides a custom blade directive @ckeditor('textareaId')
that transforms a <textarea>
into a CkEditor instance.
Give your <textarea>
an id
attribute and add the blade directive at the bottom of your page, with the identifier of the <textarea>
.
Example:
<textarea id="bodyField"></textarea>
@ckeditor('bodyField')
If you need to configure the CkEditor instance, you can do that by passing a second argument with all options into the blade directive. Refer to the CkEditor config documentation to discover all possible options.
Example:
<textarea id="bodyField"></textarea>
@ckeditor('bodyField', ['height' => 500])