goletter/ueditor

百度UEditor服务器端

v0.1.3 2020-09-04 09:59 UTC

This package is auto-updated.

Last update: 2022-07-04 14:07:27 UTC


README

百度UEditor服务器端

安装

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

配置Route

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

配置Ueditor

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