bonafideduck/react-highlight-within-textarea

Replace Draft.js with Slate.js

Closed this issue · 2 comments

gajus commented

https://www.slatejs.org/

Slate is in active development, whereas Draft is more or less abandoned.

Thanks for the suggestion. I will keep this in mind. But since Draft.js currently is accomplishing what react-highlight-within-textarea needs, it is quite popular still, and it doesn't have a slew of CVEs against it, I won't be converting at this time. I will keep an eye out for changes in support levels. Honestly, I'd prefer stability of an "abandoned" app over the instability of an active branch.

Statistic Draft.js Slate.js
Version 0.11.7 0.70.0
Last Published A year ago A day ago
Weekly Downloads 573,998 191,481
FIrst Commit Feb. 22, 2016 (imported) Sept. 11 2017
2021 Commits ~60 ~550
Commits 1136 3711

I also considered quill, but trying it out, I couldn’t get past the infinite loop problem, this article mentions it is slow for long documents, and the last release is 3 years old. So, maybe slate is the way to go for version 4.0.