TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

We rewrote The NYT text editing library. Then we OSSd it. Then rewrote it again

22 点作者 antics3 个月前

4 条评论

antics3 个月前
I really love this article. I made the transition in the opposite direction: I am a distributed systems engineer who found himself working on a collaborative text editor, and initially it was <i>very</i> unintuitive to me that text editors were not a completely solved problem.<p>One of the most confusing things about the space is that you only learn after using every high-level editing library (Lexical, <i>etc</i>.) that ProseMirror really is the right abstraction, a masterpiece of engineering and architecture. The reason this is unintuitive is because ProseMirror is essentially the same level of abstraction as a compiler middle-end, and it&#x27;s surprising that there are no higher-level abstractions that seem to work better in practice. If you are doing something remotely non-trivial, you will need the customization that only ProseMirror provides, and you will learn that the hard way. You will need the decade of bug-fixes for various touch devices and old browsers, you&#x27;ll need the careful work that has gone into performance, and so on.<p>For a long time the missing piece was that (1) PM defaults are not what the vast, vast majority of users want, and (2) it is nearly impossible to get it to work cleanly with React. react-prosemirror, in my view, <i>is</i> the solution. Every day I am happy that I get to work with it, and I am not sure what we&#x27;d do without it.
评论 #43001445 未加载
评论 #43001227 未加载
ChrisArchitect3 个月前
Author did some Q&amp;A:<p><a href="https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;reactjs&#x2F;comments&#x2F;1ij7lmb&#x2F;why_i_rebuilt_prosemirrors_renderer_in_react&#x2F;" rel="nofollow">https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;reactjs&#x2F;comments&#x2F;1ij7lmb&#x2F;why_i_rebuilt_...</a>
gabrielsroka3 个月前
<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42963360">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42963360</a>
hysan3 个月前
<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42968342">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42968342</a>