Currently working on the text editor used in the very core of the @Sanity.io Content Operating System: https://github.com/portabletext/editor.
👉 portable-text-of-life.vercel.app
🧑💻 github.com/portabletext...
👉 portable-text-of-life.vercel.app
🧑💻 github.com/portabletext...
www.sanity.io/spring-relea...
www.sanity.io/spring-relea...
That's terrible. Better fail the whole build immediately.
That's terrible. Better fail the whole build immediately.
If you have a string or number type that you have some default/known values for:
type Role = "alert" | "alertdialog" | string
TypeScript will simplify the type to just:
Role: string
However if you wrap it like `string & {}` you'll preserve the autocompletions
And... psst... guess what's driving the behaviours in and around the code block: www.portabletext.org/concepts/beh...
And... psst... guess what's driving the behaviours in and around the code block: www.portabletext.org/concepts/beh...
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.)
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.)
Thank you, @simeongriggs.dev, for inviting me on to talk about Portable Text, text editors, Behaviours, Gherkin and state machines and more.
Thank you, @simeongriggs.dev, for inviting me on to talk about Portable Text, text editors, Behaviours, Gherkin and state machines and more.
Behaviors can be bundled in Plugins to easily turn them on and off.
Here's an example of a simple
Behaviors can be bundled in Plugins to easily turn them on and off.
Here's an example of a simple
For the interested, here's a link to the source code of the markdown behaviours found in the Portable Text Editor repository: github.com/portabletext...
For the interested, here's a link to the source code of the markdown behaviours found in the Portable Text Editor repository: github.com/portabletext...
Build this with Tailwind, Typography & Headless UI. That editing pane just has the `prose` class on it. Sick!
👏 @hamburger.cloud this is immense work!
www.portabletext.org
Build this with Tailwind, Typography & Headless UI. That editing pane just has the `prose` class on it. Sick!
👏 @hamburger.cloud this is immense work!
www.portabletext.org
Introducing the standalone Portable Text Editor with our new Behavior API (beta) and specialized testing tooling.
See how it works: www.sanity.io/blog/a-block...
me: git checkout -b docs-fix-typo-2
me: git checkout -b docs-fix-typo-2
Me: Let me carefully and surgically refactor this function in one commit and then rename it in the next commit
GitHub: EVERYTHING CHANGED
Me: Let me carefully and surgically refactor this function in one commit and then rename it in the next commit
GitHub: EVERYTHING CHANGED
Can we please stop with that
Can we please stop with that
github.com/portabletext...
github.com/portabletext...