使用webman-admin进行富文本的字段开发;发现上传图片报错, 原因是webman-admin规定了2.7的版本, 和php >= 8.1不符要求;
使用composer require intervention/image ^3.0不能解决
求解决方案;
急急急
layui.use(["tinymce"], function() {
var tinymce = layui.tinymce
var edit = tinymce.render({
elem: "#content",
images_upload_url: "/app/admin/upload/image",
});
edit.on("blur", function(){
layui.$("#content").val(edit.getContent());
});
});
上传图片报错
{
"code": 500,
"msg": "Intervention\\Image\\ImageManagerStatic::__construct(): Implicitly marking parameter $manager as nullable is deprecated, the explicit nullable type must be used instead"
}
"workerman/webman-framework": "^2.1",
"webman/admin": "~2.0",