Rich text editor won't save empty content
Created database table
Added Bread
configured form fields
I have a form with a rich text editor, I can add / edit the content but, if I delete all the content and save, the content remains.
Any idea?
Thanks
Hi @gavinj1999,
That is a known bug.
thanks for the reply, any workarounds?
Try to set validation for this field with sometimes and nullable parameters. "sometimes|nullable"
Does that work @AdrianKuriata?
I don't know any workaround atm @gavinj1999 :/ Please let us know if Adrian solution worked out.
@akazorg i hope it will work, i doing it in laravel when i want save null for any field. When you try save empty field with laravel, into $request this field will not figure so he cant save empty field. When you add sometimes and nullable, sometimes will be present and can be empty and will be only validating when you put something into field. You can set present, this will let you be empty but if ypu add parameter something like min:3 this will be validate so better solution is set sometimes|nullable if your field is not required. Check laravel docs.
Better check documentation, i bad explained solution, but i did in my projects same i explained. If you want save null, you have to add nullable attribute.
Thank's Andrian, will check that PR asap.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.