jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.41k stars 1.16k forks source link

Upload Image Button #844

Open LukasGerm opened 5 years ago

LukasGerm commented 5 years ago

Hey guys,

how do I activate the Upload Image Button? So that it is shown in with the css file given? I found the issue, how you can handle image uploads but the standard css file only shows "URL". How do I do that?

LukasGerm commented 5 years ago

http://prntscr.com/o7hwri

here is an image. Where do I have the upload thing?

rashadkk commented 5 years ago

Hi...me too have same issue...can anyone please help on this ?

thammuio commented 5 years ago

any update on this issue? or do we need to enable some settings in the UI? can you please share the documentation for it?

thammuio commented 5 years ago

I was just going through other issues: probably this might help https://github.com/jpuri/react-draft-wysiwyg/issues/639

shivam4786 commented 5 years ago

Upload Image Button is Disabled even after uploading file. Plz Help

zhitomir-oreshenski-mm commented 3 years ago

Hi guys,

Are there any updates here?

johnmendonca commented 3 years ago

You must specify the uploadCallback option as described in docs: https://jpuri.github.io/react-draft-wysiwyg/#/docs

image: uploadCallback: This is image upload callBack. It should return a promise that resolves to give image src. Default value is true.
Both above options of uploadEnabled and uploadCallback should be present for upload to be enabled.
Promise should resolve to return an object { data: { link: <THE_URL>}}.

After you specify a callback, the toolbar button will now have two options: File Upload and URL

By default this option is undefined and there will only be the URL feature.