Use Gutenberg or a block editor like this ( https://github.com/codex-team/editor.js ) for a CMS. The HTML based WYSIWYG days are over.
Editor.js is WYSIWYG.
Ask HN: What is your favorite FOSS WYSIWYG editor?
11–20 of 54 posts
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#12Earlier quoted context omitted.
Have you hooked it up to Yjs for realtime collaboration? I'm about to try that. The docs ( https://tiptap.dev/guide/collaborative-editing ) make it seem fairly straightforward.
I did it last year. Implementing the server was challenging, only because I was working with a large database of existing documents. The thing about YJS is that it's a data structure itself, which means that your document is going to be a YJS document. I remember thinking "okay so there must be a way to convert the YJS doc into html and write that to the database once the session is over." I never figured that part o…
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#13Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#14Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#15Earlier quoted context omitted.
I did it last year. Implementing the server was challenging, only because I was working with a large database of existing documents. The thing about YJS is that it's a data structure itself, which means that your document is going to be a YJS document. I remember thinking "okay so there must be a way to convert the YJS doc into html and write that to the database once the session is over." I never figured that part o…
For the server, did you use hocuspocus, or something else? Mine is a greenfield project, so using Yjs's data structure as the canonical source of truth seems okay (though I expect to need some sort of indexing or something for search etc.).
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#16Not 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-...
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#17There are efforts to document how you can use WordPress editor as a stand alone library for your web projects. https://github.com/WordPress/Gutenberg/platform-docs/docs/in...
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#18I think best bet is Lexical. It is actively maintained and simple yet extensible with a lot of things
Re: Ask HN: What is your favorite FOSS WYSIWYG editor?
#19Earlier quoted context omitted.
It is not HTML based. It generates JSON
Hm, really? It uses contenteditable. Paragraphs in the live editor are like this: ... Edit: it's a bit rude to edit the parts of your comments I've replied to.