This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Switch back to draft.js from slate.js, requesting some basic features. #1250
Comments
@FateRiddle If I may ask, what made you move back? I was considering the switch due to the lack of mobile support in draft.js |
Ah I see Slate has the same issue: ianstormtaylor/slate#725 |
Yes, both draft.js and slate.js have the same issue. My text disappears after space input. |
@stonecold123 Did you find a good solution to this problem? |
I don't think we'll be making major changes to the API at the moment.
In view of this, I'm closing this issue. Let me know if you have further questions! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
feature
EditorState.createEmpty()
, but how to create initial state with text? With some digging I findEditorState.createWithContent(ContentState.createFromText(text))
, not obvious to new users.state.getCurrentContent().getPlainText()
When I'm switching back from slate.js(because some bug they are not actively fixing), here's the comparison:
compare to
import { Editor,Plain } from 'slate'
Is there some way to trim it down to more user friendly api like in slate.js? Or at least inform us on the tutorial starting demo?
Also
slate
provide a method on<Editor/>
,onDocumentChange
when the actual content changes. I find it useful asonChange
triggers way to often.And they provide a
className
property(makes more sense to me), instead of having to create a wrapperdiv
.The text was updated successfully, but these errors were encountered: