Home / Companies / Sanity / Blog / Post Details
Content Deep Dive

A block content editor that loves you back

Blog post from Sanity

Post Details
Company
Date Published
Author
Knut Melvær
Word Count
1,207
Language
English
Hacker News Points
-
Summary

The standalone Portable Text Editor, derived from Sanity Studio's implementation and built on Slate.js, is a React-based customizable block content editor designed for seamless integration into any React application. This innovative tool supports rich text and block content authoring, offering full control over content structure without relying on HTML strings, and is now available independently of Sanity Studio. It features a new Behavior API, currently in beta, allowing developers to customize editor behavior with bespoke editing maneuvers and custom shortcuts, enhancing its flexibility and usability. To ensure reliability, extensive testing is conducted using a suite that includes Gherkin syntax and Racejar, facilitating robust, human-readable test scenarios for a consistent editing experience. As the editor evolves, these advancements, including enhanced customization capabilities, are anticipated to be integrated back into Sanity Studio, aiming to make structured content editing more powerful and enjoyable across various platforms.