by iEchoic · 9y ago · 0 comments
I'm using draft.js in production (at http://www.guilded.gg). I just started looking for a replacement for a few reasons:
1. Draft is pretty broken on Android, despite being marketed as a cross-platform project. The team says that they're not working on fixing it, and it's not trivial to fix. This is a dealbreaker on its own.
2. I've had users encounter bugs where the Draft editor will serialize state that it can't read - so you can save something, and then cannot reload it. It appears to happen when doing some weird combination of adding and deleting block elements. This is a dangerous and frustrating bug.
3. In my opinion, the DraftJS API is difficult to use and extend.
Do you (@author) plan to support Android and iOS? If so, I'll definitely give this a shot.
Edit: The landing page of the project does not seem to be optimized well for mobile. When on mobile, make sure to try the editor on http://prosemirror.net/examples/basic instead, as the landing page causes some unwanted scrolling for me on mobile.
Edit: I see now. I've had a look around and this open pr seems to fix it for draftjs:
https://github.com/facebook/draft-js/pull/1013
How are you currently handling Android? We're launching with draftjs in two weeks and need to support Android.
It seems to be a continuation of the issues with the editor state and DOM falling out of sync.
I can't share the implementation project, but this is the issue: https://github.com/facebook/draft-js/issues/1089 And the component: https://robert-fairley.github.io/draftjs-litho-editor/
(my component was never meant for mobile use, though. Built for a desktop web app.)
I'd guess that there are definitely some x-browser issues with Android right now because I haven't tested there at all. So far I've been working on the core pieces of the library, and making sure desktop works. A few folks have contributed iOS fixes for things like autocorrect. I'd love for any contributions that make things work better on Android! (Or other platforms.)
Thanks!