Blog.

My first introduction to portable text

Cover Image for My first introduction to portable text
Indra Santosa
Indra Santosa

Portable Text is a JSON based rich text specification for modern content editing platforms. The rich text editor in Sanity Studio uses it and lets me embed data objects both inline and in between my text blocks. I can even have references in them so that my content backend warns me if I try to delete content that is linked to other things. I can also customize the editor with React components and paste-handling overrides. I can even make it speak.

Since the blog is using Next.js, it builds statically, but fetches new data when we have new content published in Studio.

Comments:


    More Stories

    Cover Image for Picture perfect cropping with hotspots

    Picture perfect cropping with hotspots

    Indra Santosa
    Indra Santosa
    Cover Image for Explorations powered by structured content

    Explorations powered by structured content

    Indra Santosa
    Indra Santosa