smorken / ckeditor
This package is abandoned and no longer maintained.
No replacement package was suggested.
Laravel 5 package for CKEditor
v5.0.2
2016-06-21 23:48 UTC
Requires
- php: >=5.5.0
- ckeditor/ckeditor: dev-standard/stable
- illuminate/support: 5.1.*
- smorken/html: ~5.0
Requires (Dev)
- mockery/mockery: dev-master
- orchestra/testbench: 3.1.*
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2020-08-26 13:38:56 UTC
README
License
This software is open-sourced software licensed under the MIT license
The Laravel framework is open-sourced software licensed under the MIT license
CKEditor is licensed under the Mozilla Public License Version 1.1
Requirements
- PHP 5.5+
- Composer
Use
- add service provider to
config/app.php
'providers' => [
...
Smorken\Ckeditor\ServiceProvider::class,
- add facade to
config/app.php
'aliases' => [
...
'Ckeditor' => Smorken\Ckeditor\Facades\Ckeditor::class,
- add middleware to
app/Http/Kernel.php
protected $middleware = [
...
\Smorken\Ckeditor\Middleware\Ckeditor::class,
- add assets (gulp example)
gulp.src([
'./vendor/ckeditor/ckeditor/**/*.{css,js,png,gif}',
'!./vendor/ckeditor/ckeditor/samples',
'!./vendor/ckeditor/ckeditor/samples/**'
])
.pipe(gulp.dest('./public/js/ckeditor'));
Creating an editor instance:
//index.blade.php {!! Ckeditor::create('name') !!}
`Ckeditor::create` signature:
`Ckeditor::create($name, $value = null, $text_area_options = [], $ckeditor_options = [])`