6 ms·
First thing I see, Content editable, the good parts. I'm expecting a Spreadsheets, the good parts coming next year or two base on the way people keep talking ab
by tonyle 11y ago
First thing I see, Content editable, the good parts.
I'm expecting a Spreadsheets, the good parts coming next year or two base on the way people keep talking about state.
- spicyj 11y agoThe rich text editor framework is open source now! http://facebook.github.io/draft-js/ http://facebook.github.io/draft-js/ HN: https://news.ycombinator.com/item?id=11153757 https://news.ycombinator.com/item?id=11153757
- marknutter 11y agoYet another rich text editor that requires lock-in with a particular library or framework. Web components can't come soon enough.
- spicyj 11y agoWell, you definitely don't have to use React for the rest of your app if you don't want to – you can use a Draft component inside any web app. You could also use the underlying Draft model and manage the view entirely yourself, but React helps a lot here and removes a lot of complexity from Draft.
- marknutter 11y agoAs opposed to just dropping <draft/> into my page? No thanks.
- tlrobinson 11y agoSo create a web component that wraps draft.js?
- marknutter 11y agoSo your answer is to require pulling in an entire view library just to make a simple rich text editor work? Also, I'm disheartened by the simple, anonymous down votes my comments are receiving rather than actual rebuttals. At least you had the decency to respond.
- danabramov 11y agoAs far as I know it’s not a “simple” text editor and it solves a pretty complex problem. This might provide you with some additional context: * https://news.ycombinator.com/item?id=11153935 https://news.ycombinator.com/item?id=11153935 * https://news.ycombinator.com/item?id=11153945 https://news.ycombinator.com/item?id=11153945 That said you’re absolutely not “required” to use it. It will be handy to React users because it fits into its component model and thus doesn’t have to implement the reconciliation from scratch. If you don’t use React you might not find it as handy. In this case you might like to use [ProseMirror](https://prosemirror.net/ https://prosemirror.net/) instead.
- marknutter 11y agoSorry, by simple I meant from the user's perspective. I don't mean to downplay the complexity of the actual implementation; it's a very hard problem to solve which is why I'm lamenting the React dependency.
- ianstormtaylor 11y agoYou are being downvoted for fairly obvious reasons, so I think most people don't see the need to tell you why: First, you added a snarky, negative comment as the first response to someone open-sourcing a new library. There's no need for this, especially when spicyj is (as far as I've seen) an extremely gracious open-sourcer. Your comment's core complaint, about library lock-in, was actually a valid complaint, and something that should be discussed. But sadly, the way you brought up the idea means that no one else will want to engage. Then, you replied to @spicyj's helpful response, which had I been him I probably wouldn't have even bothered with, with another snarky negative comment. Finally, someone else jumped into the conversation with another solution, and you replied to their comment with a sarcastic non-question. Not only that, but you used a strawman of "to make a simple rich text editor work", when clearly that's not all Draft.js is trying to do. And then after all of that, you complained about being anonymously downvoted. (And even in lodging that complaint you somehow managed to further subtly insult @tlrobinson.) --- I actually think your original issue, about library lock-in for text editor's a valid point. I see a lot of work going into separate rich text editors that are all reinventing the same sorts of things, with no clear best solution being developed for real-time use cases like Google Docs or Dropbox Paper. I really wish the perfect, easy solution for those existed. That said, I'm excited about Draft.js because I think anything that Facebook wants to throw their open-source weight behind will get more love, even if it encourages others to make more competing editor libraries.