death_satan/dcat-ice-editor

Dcat-Admin Form Extend editor

v1.0 2021-10-01 15:30 UTC

This package is auto-updated.

Last update: 2024-10-29 06:19:13 UTC


README

安装

composer

composer require death_satan/dcat-ice-editor -vvv

截图示例

img.png

使用

Form

$form =\Dcat\Admin\Form::make();
$form->iceEditor('field')
    ->disk('local') //设置驱动
    ->load(<<<JAVASCRIPT
    //修改图片或附件上传提交表单的路径
    this.uploadUrl="/iceEditor/src/upload.php";
JAVASCRIPT
          )
    ->path('upload/files/');//设置上传路径