如何在资产管理器 - GrapesJS 中添加新上传的图像?
How to add new uploaded image in assets Manager - GrapesJS?
我已经使用 php 上传了图片,现在如何将其添加到资产管理器 - GrapesJS 中?
请编写演示代码,而不是将 link 粘贴到资产 API
ajax 调用期望,结果是 JSON 资产在数据键中:
{
data: [
'https://image/path',
{type: 'image', src: 'https://image/path', height:350, width:250},
..
]
}
我已经使用 php 上传了图片,现在如何将其添加到资产管理器 - GrapesJS 中? 请编写演示代码,而不是将 link 粘贴到资产 API
ajax 调用期望,结果是 JSON 资产在数据键中:
{
data: [
'https://image/path',
{type: 'image', src: 'https://image/path', height:350, width:250},
..
]
}