liukai/dcat-admin-ueditor

Ueditor编辑器集成

1.0.3 2022-12-06 06:17 UTC

This package is auto-updated.

Last update: 2024-05-06 09:29:16 UTC


README

安装

执行

composer require liukai/dcat-admin-ueditor

用浏览器打开http://localhost:8000/admin/helpers/extensions找到ueditor这一行,点击启用按钮,即可使用。



## 使用

### 基本使用

$form->ueditor('content');


### 修改编辑器高度

$form->ueditor('content')->height(500);


### 修改文件存储storage

$form->ueditor('content')->disk('oss');


### 修改文件上传接口
如果你需要用到自定义的文件上传接口,可以通过这个方法覆盖掉默认的上传接口

$form->ueditor('content')->server('file-upload');


### 修改ueditor配置

$form->ueditor('content')->options([

'maximumWords' => 1000,

]);