yanthink / ueditor by yanthink

百度UEditor服务端
11
0
2
Package Data
Maintainer Username: yanthink
Maintainer Contact: yanthink911@qq.com (yanthink)
Package Create Date: 2017-07-14
Package Last Update: 2017-07-14
Language: PHP
License: MIT
Last Refreshed: 2024-04-27 03:13:50
Package Statistics
Total Downloads: 11
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

UEditor

百度UEditor服务端

安装

  1. 打开终端执行下面命令:
composer require yanthink/ueditor
  1. 打开 config/app.php 然后将下面内容添加到 providers 数组中:
Yanthink\Ueditor\UeditorServiceProvider::class,
  1. 将下面内容添加到 config/app.php 文件的 aliases 数组中:
'Ueditor' => Yanthink\Ueditor\Facades\Ueditor::class,
  1. 在终端执行下面命令:
php artisan vendor:publish --provider="Yanthink\Ueditor\UeditorServiceProvider"

配置Route

    Route::match(['post', 'get'], 'ueditor/server', [
        'uses' => '\Yanthink\Ueditor\Http\Controllers\UeditorController@init',
    ]);

配置Ueditor

    window.UEDITOR_CONFIG = {
      serverUrl: '/ueditor/server',
      ...,
    }