ghost / thinkphp5-uedit
thinkphp5 的 ueditor
dev-master
2019-03-05 02:58 UTC
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2024-09-05 19:45:08 UTC
README
初始化项目资源
> 在项目目录下找到 command.php,添加控制台配置:
return [
'ghost\uedit\Edit'
];
> 执行 console 命令初始化 assets 资源
php think editbuild ##默认资源目录
php think editbuild --path /src/path ##绝对路径
php think editbuild --path admin/js ##默认资源目录下面的路径
> 执行 console 命令初始化 config 配置
php think editbuild --config y ##初始化config配置
> 前台使用方式
<div>
{:build_editor(['name'=>'content','content'=>''])}
<textarea name="content" id="content"></textarea>
</div>