PHP code example of death_satan / dcat-ice-editor
1. Go to this page and download the library: Download death_satan/dcat-ice-editor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
death_satan / dcat-ice-editor example snippets
$form =\Dcat\Admin\Form::make();
$form->iceEditor('field')
->disk('local') //设置驱动
->load(<<<JAVASCRIPT
//修改图片或附件上传提交表单的路径
this.uploadUrl="/iceEditor/src/upload.php";
JAVASCRIPT
)
->path('upload/files/');//设置上传路径