Open Fireprufe15 opened 6 years ago
Add
previewImage: true
to the toolbar image key:
image: {previewImage: true, ...}
Please check this : https://github.com/jpuri/react-draft-wysiwyg/blob/master/stories/ImageUpload/index.js#L6
You need to provide an upload function which return url of uploaded image in format. Promise should resolve to return an object { data: { link: <THE_URL>}}
.
支持from表单上传么
Please check this : https://github.com/jpuri/react-draft-wysiwyg/blob/master/stories/ImageUpload/index.js#L6
You need to provide an upload function which return url of uploaded image in format. Promise should resolve to return an object
{ data: { link: <THE_URL>}}
.
Thanks, I am looking how to give a response back to the uploadImage callback.
When uploading an image with this component, in the demo that is in the documentation, it shows a preview of the image that is uploaded. We attempted to implement this component on our site, but instead of a preview of the image it just shows the URL to the image, the text isn't even properly bound to the box it is contained in.
This is the code we used:
Are we doing anything explicitly wrong for it not to work or is this a problem with the component?