flâneur — a map of the web's best reading

Rich Text Editor

sanity.io · 3,449 words · saved by 1 readers

Rich text in Sanity is structured to make it flexible, here's how and why.

Set up and configure the Portable Text Editor with decorators, annotations, and block content. Copy article Copy article Portable Text is extendible. Each block can have a style and a set of mark definitions that describe data structures distributed in the child spans. Portable Text also enables inserting arbitrary data objects in the array, only requiring a _type -key. It also allows custom content objects in the root array, enabling editing and rendering environments to mix rich text with custom content types. You can create as many versions of the editor for Portable Text as you want. A fre

Explore this link on the map →

related reading