4 ms·
As opposed to just dropping <draft/> into my page? No thanks.
by marknutter 11y ago
As 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.
- marknutter 11y agoYou're absolutely right. FWIW, Draft.js looks awesome and I should have expressed my concerns in a more productive way. Thanks for responding.
- pookeh 11y agoWould you also complain if Google came out with a rich text editor for Android written in Java? React is more than a library, it's an ecosystem. If you don't want to use the ecosystem use something else. Seriously there are like 50 gazillion other editors out there for you. Your post to HN is not well thought out. Most of us on HN come to read insightful comments with cinstructive critisicm. I came here to see if anyone is discussing it's architecture, performance, potential extensibility, comparison with other editors like CodeMirror and Quill etc. Your comment, in all honesty, sucked.
- st3v3r 11y agoYou added absolutely nothing to the conversation. If that particular editor doesn't meet your needs, there are many, many others out there. Just use one of them, and quit complaining.