【发布时间】:2020-06-22 07:44:04
【问题描述】:
我目前使用 vue 作为前端,django 作为后端。 我在前端vue中使用redactor的编辑器,但是不知道在imageUpload中放什么。 我应该放后端的API吗?这是我当前的代码。
configOptions = {
buttons: ['format', 'bold', 'italic', 'lists', 'link', 'image', 'file'],
plugins: ['imagemanager', 'filemanager']
imageUpload:
'http://backend-url/image/',
imageData: {
id: 10,
elements: '#my-input, #my-form'
}
}
【问题讨论】:
-
查看此链接了解如何使用图像和编辑器imperavi.com/redactor/docs/how-to/upload-images
标签: vue.js nuxt.js wysiwyg redactor