
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see you're hitting the "Could not validate the resulting portable text to insert" error when pasting images. Your schema looks correct, so let's troubleshoot this systematically.
The ability to paste images directly into the Portable Text Editor is a relatively recent feature. Before diving into other causes, check what version of Sanity you're running:
npm list sanityIf you're on an older version of Studio v3, updating might resolve the issue:
npm install sanity@latestThen restart your dev server. The Portable Text Editor has received numerous improvements for paste and drag-and-drop functionality in recent releases, and older versions may not properly handle pasted image content.
Based on the Portable Text documentation and Block Content guide, your schema structure is valid. The image block definition with custom fields (alt, wide, background) follows the standard pattern for custom blocks in the of array. The fact that a similar schema works in your other studio confirms this approach is sound.
Compare with your working studio:
plugins array of sanity.config.ts that might affect the editorcomponents or configuration on the array field itselfBrowser and environment:
Schema validation:
richText or image types elsewheresanity schema extract)While you investigate, you can still add images using:
The validation error suggests the editor is receiving the pasted content but rejecting it during the validation phase. This is most commonly caused by version differences - the paste handling code has evolved significantly across Studio v3 releases. Since you have a working studio with similar schema, comparing the exact package versions between the two projects would be my first debugging step.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store