xetaio / xetaravel-ckeditor
用于与 Laravel 一起使用 CKEditor 的包装器。
v1.0.5
2017-04-30 20:22 UTC
Requires
- php: >=5.6.4
- ckeditor/ckeditor: dev-full/4.6.x
- illuminate/support: ~5.0
README
Xetaravel CKEditor
这是一个用于与 Laravel 一起使用 CKEditor 的包装器。
安装
composer require xetaio/xetaravel-ckeditor
在您的
config/app.php
中导入 CkeditorServiceProviderXetaravel\Ckeditor\Providers\CkeditorServiceProvider::class
将 CKEditor 发布到您的公共目录
php artisan vendor:publish --tag=ckeditor
使用
<script src="/vendor/ckeditor/release/ckeditor.js"></script> <script> CKEDITOR.replace('name-go-here'); </script>
更新
要更新 CKEditor 到新版本,首先运行
composer update
然后,删除文件夹
public/vendor/release
并再次运行 artisan 命令php artisan vendor:publish --tag=ckeditor
注意:不要在
public/vendor/release
目录中放置任何自定义配置文件。相反,将它们放在public/vendor
目录或其他位置,并将它们附加到CKEDITOR
实例。