mohamedsabil83 / filament-forms-tinyeditor

A TinyMce Editor component for filament
MIT License
164 stars 37 forks source link

[Bug]: #85

Closed core45 closed 11 months ago

core45 commented 11 months ago

What happened?

When the record containing the text is deleted or the photo in the text is removed from it, the photo file remains but it should be deleted. Maybe the photos and files that are being uploaded could be managed with spatie/medialibrary - would be so much better.

How to reproduce the bug

just add and remove the photo

Package Version

2

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

mohamedsabil83 commented 11 months ago

The photos uploaded in the editor are not related to a model directly. So, it's your job to deal with that photos.

core45 commented 11 months ago

What about spatie/medialibrary - maybe this could be a solution? Something like ->fileAttachmentWithMediaLibrary('collection_name')

mohamedsabil83 commented 11 months ago

PR are welcome

core45 commented 11 months ago

Any idea how can I plug into the file storage chain?