TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to Move Away from DraftJS

5 pointsby catchmeifyoucanabout 4 years ago
Hey HN,<p>We currently use draftjs in our project, but we found later that it’s mobile support is lackluster, and overall it hasn’t been a great editor for us. Considering slate or TinyMCE, but right now all of our users data is sitting as Serialized RawDraftContent. Any good ideas on moving folks over, and what’s a good intermediary format to store rich text soo we can switch editors for the future. Raw HTML might take too much space possibly.

6 comments

gitgudabout 4 years ago
Try <a href="https:&#x2F;&#x2F;quilljs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quilljs.com&#x2F;</a> It&#x27;s open source, sleek and has a really simple plugin system, which makes modifying the editor, very easy.<p>&gt; <i>and what’s a good intermediary format to store rich text soo we can switch editors for the future. Raw HTML might take too much space possibly.</i><p>Unfortunately, HTML is probably the best solution, as it&#x27;s portable to almost any WSIWYG editor and self contained. The space issue usually comes up with storing images, <i>(shameless plug)</i> that&#x27;s why I made a quill plugin to shrink images.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;benwinding&#x2F;quill-image-compress" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;benwinding&#x2F;quill-image-compress</a>
评论 #26632554 未加载
hiimshortabout 4 years ago
Last year I built out a custom rich text editor using Slate. It certainly is powerful and fit right into the existing React app. We did, however, run into a handful of issues. The biggest thing with Slate was the need to implement most things myself. Slate functions great as a core for editor operations, but beyond that you&#x27;re pretty much on your own. Some interactions were easy but more complex wysiwyg editing became difficult to reconcile with Slate&#x27;s API. I&#x27;ve even needed to patch Slate once or twice to get things working properly.<p>I don&#x27;t have any experience with TinyMCE, but I would imagine there are similar issues to do with rich editing experiences. My best advice is to pick a simpler solution if you can. If something like QuillJS satisfies your needs with its out-the-box experience, then that may ne netter than investing time building your own edjtor with Slate. If, however, your editing is unique and&#x2F;or complex, then Slate provides a decent base to work off of.
andfrobabout 4 years ago
TinyMCE person here. We are actually working at integrating Slate into TinyMCE, so you&#x27;ll end up with the best of both worlds! See <a href="https:&#x2F;&#x2F;www.tiny.cloud&#x2F;blog&#x2F;real-time-collaborative-editing-slate-js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tiny.cloud&#x2F;blog&#x2F;real-time-collaborative-editing-...</a><p>Also - definitely use HTML as storage. More portable between editors.
onurozkanabout 4 years ago
There are 3 options you may consider;<p>- CKEditor 5 (supports json export&#x2F;import) - Tiptap 2 (beta, but very stable &#x2F; requires sponsorship &#x2F; supports many frameworks) - Remirror (under development, almost stable, free)
alexmingoiaabout 4 years ago
<a href="https:&#x2F;&#x2F;alexmingoia.github.io&#x2F;charisi" rel="nofollow">https:&#x2F;&#x2F;alexmingoia.github.io&#x2F;charisi</a>
koolakalabanabout 4 years ago
TipTap is a great editor, the newest version is in beta. It’s robust because it’s built on ProseMirror but also easy to use.