Live data from Hacker News

Wordgard: In-browser rich-text editor from the creator of ProseMirror

wordgard.net

41–50 of 111 posts

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#41

This is amusing as well as slightly scary. Prosemirror over the years has become the backbone of editors on the web. ChatGPT uses it. Gemini uses it. Linked chat and feed composers are Prosemirror powered. Literally every serious product uses Prosemirror for composing text on the web. There is an entire YC company built on top of Prosemirror (Tiptap). The thought that Prosemirror is no more in active development is s…

> The thought that Prosemirror is no more in active development is scary.

Which is a thing that I never said. In fact I went out of my way in all the announcements to stress that ProseMirror maintenance is continuing as it has been.

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#42
This looks staggeringly brilliant.

I was searching for something like this recently but ended up rolling my own using a block-based OT to local server and diff sync to remote ones.

I’m reading the system guide and nodding along. It’s super validating to see the similarities and contrasts.

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#43

The editor aside, really impressed by the artist who did he design - really tasteful, def stood out for me https://kamilastankiewicz.com/

The graphics are amazing, feels Ghibli-esque, which is crazy to say in the context of a rich text editor.

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#44
post #11

~6 years ago had a very hard time researching and implementing an @-style remote resource completion (other users and documents to reference) and the style of extensions in this editor seem very much like an evolution of prosemirror. I'd really appreciate it this was something built in, not something I have to build based on the dinosaurs example. Every time I need to reach for one of these text editor libraries that…

@ mention style built in would be fabulous, just provide an API.

As would first class mobile support.

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#46
post #11

~6 years ago had a very hard time researching and implementing an @-style remote resource completion (other users and documents to reference) and the style of extensions in this editor seem very much like an evolution of prosemirror. I'd really appreciate it this was something built in, not something I have to build based on the dinosaurs example. Every time I need to reach for one of these text editor libraries that…

@ mention style built in would be fabulous, just provide an API. As would first class mobile support.

First-class mobile support should be there (though there will be bugs, given that this hasn't seen much real-world testing yet — report them if you see them).

I haven't entirely decided what utilities I'm going to include in the core library, but mentions are definitely on the list for potential inclusion.

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#48
post #39

I think most people would love to the know the 'why'. This page discusses differences with prosemirror and is the closest I got to that question: ( https://wordgard.net/docs/prosemirror/ ). One thing to note is that there is not an upgrade path. Many concepts are shared with prosemirror, but it seems that switching means doing quite some work (correct me if I am wrong). Obsidian is based on Code Mirror so I guess the…

> why wordgard is worth the switching cost? It may not be. If you're happy with ProseMirror, continue to use ProseMirror. I have your back. But as the blog posts describes, I had a whole pile of new design insights that avoid some of the issues I've ran into with ProseMirror, so I had the itch to build a new iteration. I'll add a link to the blog post to the docs section of the website. (It's marijn, not merijn.)

I always wondered why there is no code/package overlap between CodeMirror and ProseMirror (or now Wordgard). Have you tried this? Were there particular blockers?

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#49
post #10

Getting that WYSIWYG editor up and running was a major stumbling block that I overcame to get my school newspaper a PHP-Nuke site ~25 years ago. It is insane that there isn't a web standard implementation for this passed 15 years ago.

There is contenteditable, which is what all these (Wordgard, ProseMirror) are fundamentally built on. The rest is just the UI, and interop with systems that don't desire arbitrary HTML as input.

While these use contenteditable, it's not accurate to say they're just contenteditable plus some UI and interop.

None of these modern editors (Wordgard, ProseMirror, Lexical, Slate) use contenteditable for the document model. Rather, they have their own internal document model and use contenteditable as a kind of input layer where the editor monitors what the browser does, then translates that into actual edits.

Early editors like FCKEditor and TinyMCE were only wrappers around contenteditable. They used the DOM as the real document model, then intercepted certain keypresses and events and "fixed" the behavior when it wasn't correct (e.g. double enter inside a bullet list should switch to paragraph mode).

The result was rife with bugs and inconsistencies, and didn't allow for a proper split between the model and the view (e.g. to represent columns, video embeds, and so on).

Re: Wordgard: In-browser rich-text editor from the creator of ProseMirror

#50
post #48
post #39

Earlier quoted context omitted.

> why wordgard is worth the switching cost? It may not be. If you're happy with ProseMirror, continue to use ProseMirror. I have your back. But as the blog posts describes, I had a whole pile of new design insights that avoid some of the issues I've ran into with ProseMirror, so I had the itch to build a new iteration. I'll add a link to the blog post to the docs section of the website. (It's marijn, not merijn.)

I always wondered why there is no code/package overlap between CodeMirror and ProseMirror (or now Wordgard). Have you tried this? Were there particular blockers?

There's a significant amount of code in Wordgard that is copy-pasted from CodeMirror or ProseMirror, but modified enough that trying to share it would involve nightmarish amounts of type parameters and extra indirection. You could certainly build a generic editor framework and then build several editors on top of it, but you'd end up with Raku-level amounts of architecture acrobatics and extra complexity, much of which would leak out in the public library interface, and I don't think that is generally worth it. I do occasionally, when I realize a bug fix applies to one of my other projects as well, repeat it there. But that's okay.
Post reply on HN