Skip to main content

RichEditor

Register the plugin on the field and add its tool to your toolbar groups. Keep the existing toolbar tools you want to expose.
Open Media Studio, preview a file and choose Select. Enter optional alternative text for an image, choose Original or an available generated image version, and click Insert media. The image is inserted through the editor’s native command at the saved selection.

Configuration

Choose existing images only

Render saved content

Reuse the Studio plugin configuration from your form with Filament’s renderer, especially when persisting attachment IDs or responsive attributes.

Persist private attachment IDs

This mode keeps the workspace, asset, version and optional rendition in the image attachment ID. The provider resolves the delivery URL in the current application and tenant context. This mode uses the selected original or rendition, without generating a responsive set. Use the Studio picker for attachments. The Studio attachment provider rejects direct native file uploads and leaves deletion of shared Studio media to its normal lifecycle.

Responsive images in RichEditor

The native RichEditor image schema uses img, rather than a picture node. Studio adds srcset and sizes through an optional editor extension, so browsers can choose an appropriate ready conversion. Only available variants of the same encoding and distinct widths are included. If fewer than two are available, the selected original or variant remains an ordinary image. No conversions are created while selecting or rendering content. Publish rich-editor-extension.js from the React distribution beside the configured Studio module. Keep this plugin installed when editing and rendering saved rich content so responsive attributes survive serialization. The largest candidate is the fallback src. Set imageSizes for the actual content width:
Standard Markdown has no srcset/picture syntax. Its adapter keeps a standard image pointing to the selected variant. A custom responsive Markdown renderer is an application concern; this adapter does not insert raw HTML that a Markdown renderer might strip or display as text. See Editor access, versions and retention for storage, publishing and usage registration.