RichEditor
Register the plugin on the field and add its tool to your toolbar groups. Keep the existing toolbar tools you want to expose.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
Responsive images in RichEditor
The native RichEditor image schema usesimg, 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:
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.