Configuring the Portable Text editor
Improvements to content releases permissions and portable text markdown enhancements
v3.76.0
🔒 Content Releases improvements
Fixed multiple permission-related issues across Content Releases:
- Document actions (discard version and unpublish) now properly respect user permissions
- Action menus and buttons for creating releases and discarding versions follow permission settings
- Release title and description editing honors role-based permissions
- Document search within releases properly filters based on user permissions
- Archive, unarchive, and delete operations now respect user permission levels
✍️ Portable Text Editor enhancements
Added additional Markdown shortcuts in Portable Text Editor:
**text**
or __text__
for bold (maps to 'strong' decorator) *text*
or _text_
for italic (maps to 'em' decorator)
🛠️ Other technical improvements
- TypeGen: Implemented consistent file sorting for generated types and cleaned up unnecessary trailing whitespaces
- Note: First run after upgrade may produce different results due to previous sorting inconsistencies
- Special thanks to community contributor @ChrisNolan!
- Fixed document template initialization bug
- Prevents initial value parameters from persisting between document navigation
- Thanks to community contributor @mariusGundersen!
- Improved performance for complex schema structures
- Resolved crash issues when rendering document lists with deeply nested schemas
- Special thanks to community contributor @nikaspran!
🐛 Other Bug Fixes
- Fixed error in release activity panel when retrieving edit events
- Resolved issue with initial value template parameters persisting between documents
Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
Minor version bump! Several new features!
v2.23.0
References in place
Users can now create a reference to a draft within the context of the referring document. This allows for a smoother workflow where having to leave the document you are working on in order to create and publish the document you wish to refer to is no longer necessary,
This new behavior of the reference input can be disabled by setting the property disableNew: true
.

More:
Conditional readOnly
fields and fieldsets
The ability to define if a field is editable based on conditions defined in a schema.
Info-level validation
In addition to being able to provide validation errors, developers can also provide guidance with ℹ️ -symbols to give in-line help to editors.
New modal
options in Portable Text editor
The Portable Text editor now supports a new modal
option with a type
and width
property. This means you can customize the size of annotation popovers (a much requested feature).
type: 'block',
marks: {
annotations: [
{
type: 'object',
name: 'link',
title: 'Link',
options: {
// 👇👇👇
modal: {
type: 'popover',
width: 'medium' // the default is "small"
},
// 👆👆👆
},
},
],
},
// ...
- Fixes a case where the
sanity graphql deploy
command would not exit after a successful deploy. - Fixes a bug where importing the
@sanity/eventsource
module in non-browser, non-node.js environments could potentially crash because of a window reference.