FilamentF
Filament4mo ago
4 replies
frame

Making an empty RichEditor field save as null

Has anyone figured out how to make an empty RichEditor field save as null in the database? To avoid empties saving as
{"type": "doc", "content": [{"type": "paragraph", "content": []}]}

as those render into <p></p> so its a bit weird to check whether the value exists.
Was this page helpful?