Package Data | |
---|---|
Maintainer Username: | Xety |
Maintainer Contact: | emeric@xeta.io (Xety) |
Package Create Date: | 2017-04-30 |
Package Last Update: | 2017-04-30 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:23:13 |
Package Statistics | |
---|---|
Total Downloads: | 1,320 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a wrapper to use CKEditor with Laravel.
Installation
composer require xetaio/xetaravel-ckeditor
Import the CkeditorServiceProvider in your
config/app.php
:Xetaravel\Ckeditor\Providers\CkeditorServiceProvider::class
Publish the CKEditor to your public directory :
php artisan vendor:publish --tag=ckeditor
Usage
<script src="/vendor/ckeditor/release/ckeditor.js"></script> <script> CKEDITOR.replace('name-go-here'); </script>
Update
To update CKEditor to a new version, first run :
composer update
Then, delete the folder
public/vendor/release
and run the artisan command again :php artisan vendor:publish --tag=ckeditor
Note : Do not put any custom configuration files in the
public/vendor/release
directory. Instead put them in thepublic/vendor
directory or somewhere else and attach them to theCKEDITOR
instance.