3 ms·
Ooh, this looks very promising. Nice work. I'm using draft.js in production (at http://www.guilded.gg http://www.guilded.gg). I just started looking for a repl
by iEchoic 10y ago
Ooh, this looks very promising. Nice work.
I'm using draft.js in production (at http://www.guilded.gg 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.
- pookeh 10y agoJust tested...doesn't work on my Android Chrome browser right now but hopefully it gets there.
- iEchoic 10y agoYeah, I just did some testing on an Android device as well and had the same result. I like Slate's API and data model more than Draft's, so I'd almost certainly switch if this were fixed.
- ianstormtaylor 10y agoHey, author here, good question! 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!
- kiejo 10y agoHave a look at ProseMirror (http://prosemirror.net http://prosemirror.net). It works quite well on Android and iOS and the maintainer is super responsive and has already fixed a lot of Android/iOS specific issues. 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 http://prosemirror.net/examples/basic instead, as the landing page causes some unwanted scrolling for me on mobile.
- scottmf 10y agoIn what way is Draft broken on Android? 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 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.
- karn09 10y agoOn Android there is a high chance your text won't appear, or the keyboard will disappear. Trying to delete text will cause the cursor to jump around if you hold delete down instead of one character at a time. Very frustrating.
- 52-6F-62 10y agoThe cursor and atomic block deletion issues occur on desktop as well. I filed an issue recently on this very thing. 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 https://github.com/facebook/draft-js/issues/1089 And the component: https://robert-fairley.github.io/draftjs-litho-editor/ https://robert-fairley.github.io/draftjs-litho-editor/ (my component was never meant for mobile use, though. Built for a desktop web app.)