Open lemonxxy opened 6 years ago
I have solved this problem.But there this another question , how to dynamic initial the state ???
I have solved too ~
I also have the same problem. Can you tell me how you solved it?
Can you tell me how you solved it?
It does works on demo pages: https://jpuri.github.io/react-draft-wysiwyg/#/ You can also refer the storybook: https://github.com/jpuri/react-draft-wysiwyg/tree/master/stories/ImageUpload
I have already upload the image ,but it can`t show in the text area, link this ,
xhr.addEventListener('load', () => { const response = JSON.parse(xhr.responseText); resolve( { data: { link: response.data[0].origin}}); })
So , what can I do to let the image show in the text area???