Live data from Hacker News

Ask HN: What is your favorite FOSS WYSIWYG editor?

news.ycombinator.com

11–20 of 54 posts

Re: Ask HN: What is your favorite FOSS WYSIWYG editor?

#12
post #7

Earlier 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…

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?

#13
post #9

Earlier quoted context omitted.

Editor.js is WYSIWYG.

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.

Re: Ask HN: What is your favorite FOSS WYSIWYG editor?

#14
post #13

Earlier 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.

It generates JSON not HTML

Re: Ask HN: What is your favorite FOSS WYSIWYG editor?

#15
post #12

Earlier 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.).

At the time, hocuspocus was still somewhat new and I didn't want to rely on it, but I'd be willing to revisit it again if I were you. I know that TipTap is a YC graduate so I'd assume they're going to invest heavily into hocuspocus because IIRC it's their only source of revenue.

Re: Ask HN: What is your favorite FOSS WYSIWYG editor?

#16
> I will buil[d] the project using ruby on rails

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

Re: Ask HN: What is your favorite FOSS WYSIWYG editor?

#19
post #13

Earlier 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.

I had no reply button only later. Sometimes HN is Strange so I edited it.
Post reply on HN