-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FB are no longer supporting Draft.js; perhaps we should switch to Slate.js or similar #6477
Comments
Slate does look very nice. I don't think it supports Entities like draftjs does, but looking at it I think it'd be possible to write a plugin for those sorts of things (if someone hasn't already). |
i think it effectively does support entities via plugins, which are trivial to write. I’ve made a stab at this in my spare time on matrix-org/matrix-react-sdk#1890. It so far going fairly well: first of all commenting out all the Draft stuff, getting it working again pre-RTE but with Slate, and then uncommenting the Draft stuff again as it’s ported to Slate. So far Slate feels way nicer to work with, and has already fixed various weird races when trying to type and paste into the editor where characters would appear out of order, which was driving me nuts. |
fixes #4708 already for instance |
done. |
what, why? draftjs still work very fine |
facebookarchive/draft-js#1312 (comment)
->
http://slatejs.org/#/rich-text looks really nice
The text was updated successfully, but these errors were encountered: