Had one of those "Whoa, that's cool" moments today and had to share it. We all use web-based text editors every day, but sometimes you run into one that just feels different. It's so smooth, you have to stop and figure out why.
I was using this editor, and on a whim, I typed --- and hit space.
Boom! 💥
Instead of just being three dashes, it instantly transformed into a perfect horizontal line <hr>. No clicking a button, no selecting from a menu. The editor just knew what I wanted. That was cool, but what happened next was the real magic.
I tried to navigate around the line with my arrow keys. This is where most editors get clunky, but not this one.
<hr> line. It was like the editor was saying, "Want to add something in this gap?" Typing there instantly created a new paragraph. So intuitive!<hr> ruler as a single block, like an object in Figma. You could just hit delete and poof, the whole thing was gone. 🎯Here’s a quick visual of what that felt like:
My Awesome Paragraph...------------------ ⬅️ (The magical "gap cursor" appears here first)------------------ ⬅️ (Then you select the line itself!)The Next Paragraph...
A little digging revealed the magic: this editor is built with ProseMirror. 🪞
It's not just a text editor; it's a full-on toolkit for building document editors. It treats everything—paragraphs, lines, images—as a structured "node."
-- trick is an Input Rule, a pattern-matching wizard.It’s a masterclass in user experience, turning a potentially clumsy interaction into something fluid and powerful. It's a great reminder that the best design is the design you don't have to think about—it just works.
Definitely something to keep in mind for our own future UI/UX projects! 🚀