Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/youyingxiang/kindeditor
基于Laravel-admin的kindeditor拓展
https://github.com/youyingxiang/kindeditor
Last synced: about 1 month ago
JSON representation
基于Laravel-admin的kindeditor拓展
- Host: GitHub
- URL: https://github.com/youyingxiang/kindeditor
- Owner: youyingxiang
- Created: 2019-05-20T07:13:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T03:17:15.000Z (over 4 years ago)
- Last Synced: 2024-09-18T04:16:26.272Z (3 months ago)
- Language: PHP
- Size: 753 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-laravel-admin - kindeditor - KindEditor 是一套开源的在线HTML编辑器 (扩展包 / 字段类扩展包)
README
# kindeditor与fileupload上传组件
- 1: git clone https://github.com/laravel/laravel.git (安装laravel)
- 2: composer require yxx/kindeditor (安装富文本编辑器拓展)
- 3: 如果没有安装laravel-admin,参考一下网址操作 -**[laravel-admin](https://laravel-admin.org/docs/zh/installation)**
- 4: 运行 php artisan vendor:publish --provider="Yxx\Kindeditor\EditorProvider"
- 5: php artisan storage:link 建立软连接## 项目中使用kindeditor编辑器
$form->kindeditor('content', '内容');
## 项目中使用fileupload单图片上传
$form->fileupload('img', '图像');
## 上传图片文件管理(删除目录和图片文件)
# 配置文件
config/editor.php'route' => [
'prefix' => env('ADMIN_ROUTE_PREFIX', 'yxx'),
'namespace' => 'Yxx\\Kindeditor\\Controllers',
'middleware' => ['web'],
],
'up_config' => [
"image_size" => 1024*1024*3, // 上传图片大小
"file_size" => 1024*1024*100, // 上传文件大小
"media_size" => 1024*1024*100, // 上传视音频大小
"flash_size" => 1024*1024*100, // 上传flash大小
"image_format" => "jpg,gif,jpeg,png,bmp,svg", // 上传图片格式
"file_format" => "doc,docx,xls,xlsx,ppt,htm,html,txt,rar,zip,mp4,pdf,pptx", // 上传文件格式
"media_format" => "mp3,mp4,avi", // 上传视音频格式
"flash_format" => "swf,fla", // 上传flash格式
"upload_path" => "uploads", // 上传文件目录
],