jeroennoten/laravel-ckeditor
| Install | |
|---|---|
composer require jeroennoten/laravel-ckeditor |
|
| Latest Version: | v3.8.1 |
| License: | MIT |
| Last Updated: | Nov 16, 2017 |
| Links: | GitHub · Packagist |
Easy CKEditor integration with Laravel 5
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.
Installation
-
Require the package using composer:
composer require jeroennoten/laravel-ckeditor -
Add the service provider to the
providersinconfig/app.php:JeroenNoten\LaravelCkEditor\ServiceProvider::class, -
Publish the public assets:
php artisan vendor:publish --tag=ckeditor-assets
Updating
-
To update this package, first update the composer package:
composer update jeroennoten/laravel-ckeditor -
Then, publish the public assets with the
--forceflag to overwrite existing filesphp artisan vendor:publish --tag=ckeditor-assets --force
Usage
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')
Configuration
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])
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v3.8.1 | ~5.2.0| | MIT | ||
| v3.8.0 | ~5.2.0| | MIT | ||
| v3.7.2 | ~5.2.0| | MIT | ||
| v3.7.1 | ^7.0 | ~5.2.0| | MIT | |
| v3.7.0 | ^7.0 | ~5.2.0| | MIT | |
| v3.6.0 | ^7.0 | ~5.2.0| | MIT | |
| v3.5.0 | ^7.0 | ~5.2.0 | MIT | |
| v3.4.1 | ^7.0 | ~5.2.0 | MIT | |
| v3.4.0 | ^7.0 | ~5.2.0 | MIT | |
| v3.3.0 | ^7.0 | ~5.2.0 | MIT | |
| v3.2.0 | ^7.0 | ~5.2.0 | MIT | |
| v3.1.1 | ^7.0 | 5.1.*| | MIT | |
| v3.1.0 | 5.1.*| | MIT | ||
| v3.0.0 | ^5.2 | MIT | ||
| v2.1.1 | ^5.2 | MIT | ||
| v2.1.0 | ^5.2 | MIT | ||
| v2.0.0 | ^5.2 | MIT | ||
| v1.0.0 | ^5.2 | MIT |