jpuri / react-draft-wysiwyg

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

Hide image in editor #1307

Open miag676 opened 1 year ago

miag676 commented 1 year ago

How could you show a link in the editor after uploading image, instead of displaying the whole image in the editor?

In this example I would like to display the link of the photo instead of the photo. Zajeta slika

Thanks in advance!

BuiTriThuc commented 1 year ago

I try to code but have Error please help me. Warning: Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the r component.