Ask HN: What is your favorite FOSS WYSIWYG editor?
Used to use trix but my current project is CMS-like, so I think I need better WYSIWYG HTML based editor
atleast I need to be as useful as wordpress article editor
for extra note I think I will built the project using ruby on rails, if anyone have stack suggestions, please tell me I will happy to have that
53 comments
[ 335 ms ] story [ 2022 ms ] threadthese days i just try to stick with markdown, which is more controlled and scope-limited, albeit more targetted for technical people.
> Lexical is comprised of editor instances that each attach to a single content editable element. A set of editor states represent the current and pending states of the editor at any given time.
What does that even mean? Seriously, if this is how they introduce their product I don't even want to think about how bloated the rest of it is.
To me, this statement implies that developers of Lexical would be interested in maximizing their user base, as opposed to, say, attracting the right kind of users.
I mean it's pretty easy to understand wording if you are a developer.
If you're working on a greenfield project it'll probably be easier. And the integration with TipTap itself was simple. I love TipTap.
Not an editor, but you might want to look at:
"Modern Front-End Magic With Rails 7: A Visual Editor For Markdown (Part 1)" and part 2 (no part 3?):
https://kuy.io/blog/posts/modern-front-end-magic-with-rails-...
https://kuy.io/blog/posts/modern-front-end-magic-with-rails-...
Or just use their rail engine for blogging:
https://kuy.io/blog/posts/today-we-released-bloak-the-rails-...
https://github.com/kuyio/bloak
Either way the article should give some ideas (ignore the markdown stuff).
I think best bet is Lexical. It is actively maintained and simple yet extensible with a lot of things
This space has a lot of churn; a hot new project is started by a dev who claims they'll finally have "the solution" for the WYSIWYG space. Then it gets dropped after a few years. In fact many of the comments are listing archived projects no longer under development.
This is an unfortunate drawback to truly free software. The only two WYSIWYG editors I can recommend are OSS but have premium plans and premium plugins. However even their free plans are more capable than most other options. Corporate backing has upsides.
I would try TinyMCE. The docs are okay and it is a true WYSIWYG. If you're ready for the learning curve, and want to make something with virtually unlimited capabilities, CKeditor cannot be beat. The CKeditor model is a subtle abstraction you don't notice is there, unless you need it in which case it's very powerful. The documentation is incredible. The pre-built editors and plugins cover many use cases.
Otherwise a reader might think (as I did) that you're asking a question the answer to which could be LibreOffice Writer or other things like that.
The WordPress article editor (Gutenberg) is FOSS, so you could just use that in your project. That's definitely at least as useful as the WordPress article editor! ;)
> "Open visual development".
OK. What is that? I assume this a tool for designers to produce mockups of websites?
> "Webstudio visually translates CSS without obscuring it".
Uh... OK? It translates CSS? Into what? Do I first write the CSS then it translates it? I thought this was a visual design tool? If I need to write CSS then what's the point of this tool?
> "We deploy your site to Cloudflare Workers".
Oh, so it's not a design tool. It's a website builder and a hosting platform? I didn't think this could get any more confusing.
> "With style sources built on top of Design Tokens, keeping your work in sync with your design system won’t feel like a burden."
What the fuck are style sources and design tokens?
...
Seriously people. If your home page can't actually explain what your product does then you have failed spectacularly.
This, to me, is where the "paying for software that isn't free in either sense" has finally reached a fair equilibrium? Which is to say, thanks to the free-ness of the underlying platform -- it seems absolutely equitable to be like, "dig in and use the free but more difficult stuff that's out there, or just drop some money on this pay stuff (which you're also still generally free to hack with.)
I don't think very much software under "you can't have it unless you pay for it" is very good, but this is an exception.
It's by far the best codebase I've seen so far with regard to web editors.
https://prosemirror.net
Another comment mentioned TipTap2. If you're using React and like abstractions, TipTap2 is a good choice in my opinion.
But I also enjoyed working with ProseMirror without another library on top.
PS: AtlasKit has a lot of boilerplate code for working with PM that makes things easier: https://atlaskit.atlassian.com/packages/editor/editor-core
1. Lexical
2. ProseMirror/Tiptap
Both of these are very extensible, actively developed, and well-built. Tiptap is indy and pushes its pro product now (fair). Lexical is supported by meta. Pros and cons to both of these FOSS types.