3 ms·
Discovered Slate last night while evaluating Draft.js for building the rich text editing experience of our WYSIWYG editor. After running into some issues with
by migueloller 8y ago
Discovered Slate last night while evaluating Draft.js for building the rich text editing experience of our WYSIWYG editor.
After running into some issues with Draft.js’ [1] Flow types, and going deep into the GitHub repo looking for solutions, I concluded that the project wasn’t receiving enough support from Facebook to invest in it. [2][3]
After discovering Slate from one of the issues, I was extremely impressed with its documentation and well designed API. The plugin system is so good it even gives me some ideas on how to design our WYSIWYG’s API.
And for people that don’t use React, while there aren’t any official plugins for other libraries yet, the source [4] is so readable that making one wouldn’t be hard at all. I’m sure contributions would be accepted for a Vue plugin, Angular plugin, or even a vanilla plugin. In the React plugin there’s a DOM plugin used already! [5]
Ian did an amazing job! Thought it was worth sharing.
[1] https://draftjs.org https://draftjs.org
[2] https://github.com/facebook/draft-js/issues/1193 https://github.com/facebook/draft-js/issues/1193
[3] https://github.com/facebook/draft-js/tree/master/meta/meeting-notes https://github.com/facebook/draft-js/tree/master/meta/meetin...
[4] https://github.com/ianstormtaylor/slate/tree/master/packages/slate/src https://github.com/ianstormtaylor/slate/tree/master/packages...
[5] https://github.com/ianstormtaylor/slate/blob/master/packages/slate-react/src/plugins/dom.js https://github.com/ianstormtaylor/slate/blob/master/packages...