Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

88% Positive

Analyzed from 1486 words in the discussion.

Trending Topics

#prosemirror#wordgard#https#editor#web#why#code#blog#don#text

Discussion (26 Comments)Read Original on HackerNews

exceptione•about 3 hours ago
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 they won't be switching, but tiptap.dev and others do.

@merijn, maybe you could address why wordgard is worth the switching cost?

EDIT: I see many points are addressed in Merijns personal blog. I submitted (https://marijnhaverbeke.nl/blog/wordgard-0.1.html) to HN for better context.

marijn•30 minutes ago
> 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.)

whazor•8 minutes ago
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?
maxloh•about 2 hours ago
"Why is it worth the switching cost?" is the genuine question I have too. Or more importantly, why not just make it ProseMirror v2? The landing page needs more information about the "why" rather than the "what".
Garlef•about 1 hour ago
From the blog post:

> A ProseMirror 2.0 with an incompatible interface would amount to the same but make it ambiguous what people mean when referring to ProseMirror. Trying to graft stuff on in a backwards-compatible way as an 1.x version would produce a compromised win32-style mess.

Garlef•about 1 hour ago
From the blog:

> I'm not all that fond of the ProseMirror pun anymore either (it's CodeMirror but for prose, get it?)

So... It's time for someone to create Codegard, i guess?

goodwillhunting•about 2 hours ago
The editor aside, really impressed by the artist who did he design - really tasteful, def stood out for me https://kamilastankiewicz.com/
techpression•22 minutes ago
The graphics are amazing, feels Ghibli-esque, which is crazy to say in the context of a rich text editor.
andredurao•about 1 hour ago
The design and aesthetics of the page are really impressive, but what caught my attention was the "Deluxe API" which was new to me because I hadn't heard of it before.
jiffygist•about 1 hour ago
I don't like WYSIWYG on the web. You do a long and tedious formatting of a forum post, then close the tab and it's all gone. I prefer to use a local text editor then Ctrl+V into web form. Which I can with markdown
justusthane•about 1 hour ago
I've seen this solved in some platforms with localstorage, so that it automatically saves your "draft" as you type and seamlessly restores it if you re-open the page. It was a really nice surprise the first time I experienced it (after closing a tab by mistake).
8-prime•about 1 hour ago
It depends for me. For my blog I have a web based editor, but one, that is just plain markdown with a preview. Similar to your described workflow. For a note taking app I decided to use WYSIWYG because I don't have the space for a split view and didn't want to just look at the markdown as is.

My main gripe with WYSIWYG is that they can get in your way. When I create a verbatim block and can't leave that block anymore (looking at you Teams). I guess thats also why I enjoyed LaTeX as much as I did.

keepupnow•about 1 hour ago
Any sites that have forms or editors that don't save your progress with localstorage need to leave the web and not come back.
lewisjoe•about 2 hours ago
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 scary.

john_strinlai•about 1 hour ago
>The thought that Prosemirror is no more in active development is scary.

From their blog: "I'm still proud of ProseMirror, and ProseMirror isn't going anywhere—it will continue to be maintained."

marijn•26 minutes ago
> 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.

curtisblaine•about 1 hour ago
The only scary thought is that all these important operations don't have a plan B if prosemirror, a software they don't write, don't own and presumably don't pay, goes away.
marijn•27 minutes ago
Many of them do pay.

Also MIT-licensed software doesn't 'go away' all that easily. If a piano fell on my head tomorrow, interested parties would probably manage to continue development in a fork.

Imustaskforhelp•41 minutes ago
Obligatory xkcd: https://xkcd.com/2347/

but as @john_strinlai as I have said it doesn't seem like Prosemirror is going unmaintained. It will continue to be maintained

but I think its worth thinking about the structure of the whole thing being so similar to the xkcd which is what might be the scary part of it.

nicce•about 2 hours ago
I would be curios that what are the cons/pros for selecting this over Facebook's Lexical (https://github.com/facebook/lexical)
keepupnow•about 1 hour ago
My exact comment, Lexical is very powerful and needs little dependencies.
low_tech_punk•39 minutes ago
I believe Wardgard has zero external dependencies. The three packages it depends on are all utils written by the author himself.

https://code.haverbeke.berlin/wordgard/wordgard/src/branch/m...

mapt•about 3 hours ago
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.

CGamesPlay•about 2 hours 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.
atombender•4 minutes ago
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).

mhitza•about 3 hours ago
~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 is my no. 1 usecase, followed by WYSIWYG.

CrzyLngPwd•21 minutes ago
@ mention style built in would be fabulous, just provide an API.

As would first class mobile support.

marijn•17 minutes ago
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.

milkshakeyeah•about 3 hours ago
I can’t believe that we are still trying to solve this. One would think that after so many years (I’ve started doing web almost 20 years ago) we would end up with some solutions baked in browsers
nicce•about 2 hours ago
I think the issue is not the "solving", rather that people have different opinions and they want different things, and there isn't common agreement what is needed or how. Most editors work just fine for the basic needs. But well, that is my opinion.
yoz-y•about 2 hours ago
Something like showcontrols for contenteditable with flags for features
haroldadmin•about 4 hours ago
ProseMirror is an excellent project, but it’s always been a bit awkward using it directly in React. I remember that NYT had to rewrite the renderer to make it work for their use-case.

I wonder how Wordgard compares in this aspect!

exceptione•about 3 hours ago
For people who have dealt with react, this part might give some insight into that topic (https://wordgard.net/docs/prosemirror/#h-transactions-and-ch...)? Nevertheless, it would be good if this could be addressed in the docs.

I am not sure if this makes things easier for react interop, but this piece might be of interest too:

  > One of the biggest mistake blunders in ProseMirror is that the editor view does not get access to the transaction objects when updating, just the state. Wordgard does not repeat this mistake, and makes updates take transactions, not just a new state.

  > This means that things like the DOM update logic and UI plugins can precisely observe what happened, and handle changes in a efficient and more effective way. The weird unexpected DOM redraws that are still a thing in ProseMirror should not occur. Only the precise DOM structure affected by the new transactions will be updated.


Anyways, it is great to see Merijn still going strong with his free work. Anyone needing interactive rich text on the web won't find anything better than his brain childs.
tefkah•about 2 hours ago
The people developing that left NYT and spun it out into a separate (really great!) project https://github.com/handlewithcarecollective/react-prosemirro...

They are also working on a collaborative editing suite for ProseMirror as an alternative to TipTap https://pitter-patter.dev/

alserio•about 3 hours ago
That's due to the React constraints, though
yule•about 2 hours ago
The artwork on the website is beautiful! What a (forgotten) way to draw ones attention.
keepupnow•about 1 hour ago
With AI slop everywhere it is extremely refreshing to see hand-drawn beautiful illustration.
Advertisement
yodon•about 3 hours ago
The code appears to be unavailable. This includes not just wordgard but all the ProseMirror code as well.

If the motivation for moving off GitHub was "GH is down too much", it might be worth tracking how many 9's of uptime is lost in the self-hosted case.

jitl•about 2 hours ago
Works for me:

    $ git clone https://code.haverbeke.berlin/wordgard/wordgard.git
    Cloning into 'wordgard'...
    remote: Enumerating objects: 8274, done.
    remote: Counting objects: 100% (8274/8274), done.
    remote: Compressing objects: 100% (4747/4747), done.
    remote: Total 8274 (delta 6049), reused 5002 (delta 3464), pack-reused 0 (from 0)
    Receiving objects: 100% (8274/8274), 1.61 MiB | 2.93 MiB/s, done.
    Resolving deltas: 100% (6049/6049), done.
nmstoker•about 2 hours ago
Were you meaning it was unavailable temporarily?

Maybe something changed in the meantime, but I'm seeing what appears to be the code for it here: https://code.haverbeke.berlin/wordgard/wordgard/src/branch/m...

chrisjj•about 3 hours ago
How do I get text labels on the buttons?
marijn•14 minutes ago
The menu can be replaced, either entirely or by item, but the default buttons use icons, not text labels.
chrisjj•about 3 hours ago
At Try, I entered x and tapped what I presume is Undo. No effect.

Android Chrome.

marijn•20 minutes ago
Tried to reproduce this, also on Chrome Android, but undo removes the typed character as expected.