Replaced the boring buttons with some type controls!
(🤫 This is actually a really good showcase for input rules: github.com/portabletext...)
@hamburger.cloud.bsky.social
Father of two children and countless software bugs Currently working on the text editor used in the very core of the @Sanity.io Content Operating System: https://github.com/portabletext/editor.
Replaced the boring buttons with some type controls!
(🤫 This is actually a really good showcase for input rules: github.com/portabletext...)
Couldn't sleep so I built Game of Life in @sanity.io's Portable Text Editor
👉 portable-text-of-life.vercel.app
🧑💻 github.com/portabletext...
GitHub contribution chart with three consecutive blank weeks
Now that's what I call vacation
04.08.2025 11:06 — 👍 4 🔁 0 💬 1 📌 0OK this quiz is just *flips table*
11.07.2025 20:10 — 👍 2 🔁 0 💬 0 📌 0The cake was not a lie!
25.05.2025 11:25 — 👍 3 🔁 0 💬 0 📌 0The age of Headless CMS is over. Say hello to the Sanity App SDK, Functions, AI Agents, and more—all part of The Content Operating System.
www.sanity.io/spring-relea...
Here you go, Jeppe: docs.angularjs.org/guide/scope
28.04.2025 08:58 — 👍 1 🔁 0 💬 1 📌 0error TS6133: 'someVariable' is declared but its value is never read.
That's terrible. Better fail the whole build immediately.
Hey, it worked! This is going to become expensive...
09.04.2025 19:50 — 👍 1 🔁 0 💬 0 📌 0The sun, visible through dark clouds, partially eclipsed by the moon
Partial solar eclipse, March 29, as seen from Denmark (through the right glasses)
30.03.2025 15:40 — 👍 2 🔁 0 💬 0 📌 0I Love Features!
16.03.2025 18:38 — 👍 0 🔁 0 💬 0 📌 0Can I slide the thingy to commit code or how does it work?
16.03.2025 09:55 — 👍 0 🔁 0 💬 2 📌 0Blue floppy disk containing Wolfenstein 3D Episode One: Escape from Wolfenstein
Found my Wolfenstein 3D floppy
16.03.2025 09:01 — 👍 3 🔁 0 💬 1 📌 0Maybe there's something I'm not seeing here, but since the type resolves to "string" I'd just use that instead. At least "string" won't provide a false sense of type safety.
15.03.2025 07:47 — 👍 0 🔁 0 💬 1 📌 0I wouldn't, unless it was last resort, use the type "string" either if any of the values had special meaning. Which my whole point.
15.03.2025 07:06 — 👍 0 🔁 0 💬 1 📌 0Maybe a 🌶️ take, but I generally don't like this trick. If one of your default/known values changes - e.g., "alert" is renamed to "warning" - your call sites won't break, and subtle, hard-to-discover bugs can be introduced. Any string is allowed, remember?
15.03.2025 06:14 — 👍 3 🔁 0 💬 2 📌 0It's so good.
And... psst... guess what's driving the behaviours in and around the code block: www.portabletext.org/concepts/beh...
What's the end goal?
09.03.2025 18:14 — 👍 0 🔁 0 💬 1 📌 0Ah, stupid me. Of course there are third-party solutions 😇 Let's see if scrobbling is still fun or if it's time to leave one of my oldest internet accounts.
08.03.2025 17:47 — 👍 0 🔁 0 💬 0 📌 0Looks like last.fm still doesn't offer a way to export your data. So... I guess I might as well revive my 20-year-old account for the second(?) time!
Do you have one?
www.last.fm/user/christi...
(I want to listen to more music again, and maybe this can be a weird sort of motivation.)
But does it have :potato-intensifies:
26.02.2025 18:40 — 👍 1 🔁 0 💬 0 📌 0It's a common term 🤔 en.m.wikipedia.org/wiki/Blue%E2...
25.02.2025 18:34 — 👍 1 🔁 0 💬 1 📌 0MacBook A1181 with various stickers, including "I Hate Computers", on a couch
My MacBook from 2007. Still boots. And I still hate computers.
23.02.2025 09:24 — 👍 2 🔁 0 💬 0 📌 0Here's a link to the Behavior that turns `---`/`___`/`***` to a horizontal rule object: github.com/portabletext...)
Any feedback welcome!
PTE still needs to know what object you want to use for the <hr />: github.com/portabletext...
But at least you don't have to reach for any UI tool to insert it. Maybe this would help?
We are hoping to bring the Behavior API, in some form or another, to Studio very soon.
Hi there!
We are working on a new API (currently beta) for PTE that allows you to easier customise the editor behaviours: www.portabletext.org/concepts/beh...
Behavious can be bundled in plugins and the most fully-fledged plugin we've made so far is a Markdown plugin:
playground.portabletext.org
It really is a special feeling sitting in your car, listening to a podcast, as you've done so many times before, but this time YOU'RE THE GUEST!
Thank you, @simeongriggs.dev, for inviting me on to talk about Portable Text, text editors, Behaviours, Gherkin and state machines and more.
Grøngaard && Griggs
06.02.2025 18:58 — 👍 1 🔁 0 💬 1 📌 0Very soon, you'll be able to hear @simeongriggs.dev and me talk about the Portable Text Editor—the challenges behind the scenes, as well as the cool new APIs we're cooking up.
04.02.2025 13:31 — 👍 7 🔁 0 💬 0 📌 0Try it out on playground.portabletext.org
Or have a peek at the plugin source code here: github.com/portabletext...