sohenk/wangeditor

wangeditor3 for laravel5.suport qiniu,storage upload

dev-master 2018-06-09 02:17 UTC

This package is not auto-updated.

Last update: 2022-01-03 16:50:13 UTC


README

WangEditor3 for Laravel 5.

wangEditor 是一款基于javascript和css开发的html富文本编辑器,开源免费。

Latest Stable Version Latest Unstable Version License Total Downloads

Install

$ composer require sohenk/wangeditor:dev-master

Contributing

  1. 将下面这行添加到 config/app.phpproviders 数组里:

    Sohenk\WangEditor\WangEditorProvider::class,
  2. 发布资源与配置文件

    $ php artisan vendor:publish --provider='Sohenk\WangEditor\WangEditorProvider'
  3. 在你的模板中引入资源文件,id 为你的编辑器容器 id

    @include('vendor.wangeditor.initialize', ['id' => 'PickEditor'])
  4. 创建 storagepublic 的软链接

    $ php artisan storage:link
  5. 正确配置你 .env 文件中的域名

    APP_URL=yourdomain

七牛云支持

如果你想使用七牛云储存:

1.安装和配置 laravel-filesystem-qiniu

2.配置 config/wangeditor.phpdiskqiniu:

'upload' => [

    ...
    
    'disk' => 'qiniu'
],

阿里云支持

如果你想使用阿里云存储:

1.安装和配置 aliyun-oss-storage

2.配置 config/wangeditor.phpdiskaliyun:

'upload' => [

    ...
    
    'disk' => 'aliyun'
],

又拍云支持

请参考 七牛云支持阿里云支持

Thanks

@overtrue @Seaony

License

MIT