sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 430 forks source link

Popup not showing, Images and link #405

Closed chemiadel closed 2 years ago

chemiadel commented 3 years ago

Clicking on image button not opening and autofocusing on editor body https://codesandbox.io/s/modern-feather-7yd9g?file=/src/editor.js

talklikethat commented 3 years ago

Same on image and link buttons https://codesandbox.io/s/falling-resonance-hr7yv?file=/src/RichText.js

naishe commented 3 years ago

@talklikethat -- this is perfect reproduction of my case.

lexprom commented 3 years ago

Does align work? Doesn't work for me. The funny thing is everything works fine in the demo 👀

sstur commented 3 years ago

Hmm, it's possible the CodeSandbox example is using the latest version and the one at react-rte.org is not. I'd need to verify this theory, but don't have time to look into it at the moment. Please do update this thread with any findings.

Also note: this project is not really actively maintained anymore, so I don't recommend using it in production in it's current state.

naishe commented 3 years ago

I really liked the ease of setting this up and the clean interface. It covers 90% of my use cases, so I would love this library to live. I cannot promise anything right away, but I will try to have a look and see if I can add some value.

sstur commented 3 years ago

Thanks @naishe for your kind words about this. I'd love to keep it going but it's so outdated right now and has a lot of shortcomings. Also no promises, but there's a chance it comes back to life at some point.

iPilotte commented 3 years ago

The difference between CodeSandbox and react-rte.org is React version, it does not support React17 yet. I've already opened PR here > https://github.com/sstur/react-rte/pull/399