How do we preserve image filenames from Rich Editor?
https://filamentphp.com/docs/3.x/forms/fields/rich-editor
I'm not finding a way to preserve file names like you can with File Upload fields - which is likely negatively impacting public-facing images for SEO/etc.
I'm also not finding any way to provide my own file handler to shoot the files over to SpatieMediaLibrary.
Any ideas on how to get what I'm looking for? I'm about to have to build out a custom page to upload files to Spatie so I can copy/paste the code into an editor (but none of the editors I'm finding even support direct HTML input lol)
- I'd like a full suite of more customization here - like being able to include a whole srcset for an uploaded image, figure captions/etc.
- Bonus: I'd like an HTML view to add in custom DOM elements or edit things manually (I can obviously do this in the database, but clients cannot)
Tried the TinyMCE plugin from the Filament plugin page as well, having all the same struggles.
2 Replies
What exactly are you looking for, advanced solutions often require advanced implementation which tends to fall outside the lowest common denominator.
Also, have you tried #awcodes-tiptap-editor
It supports srcset
I will give it a shot and see if I get along with it better than the default Rich Editor