mohamedsabil83 / filament-forms-tinyeditor

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

[Bug]: Images upload bug on creating post #72

Closed slusarsu closed 1 year ago

slusarsu commented 1 year ago

What happened?

If I upload an image in the editor when creating a post, I have a problem that the path to the image starts with this "./../storage/upload/", but it should be "/storage/upload/". If I open the post for editing and re-upload the file in the editor, it works fine. This means that I have a problem only when creating a post.

How to reproduce the bug

I sue this construction TinyEditor::make('content') ->fileAttachmentsDisk('local') ->fileAttachmentsVisibility('storage') ->fileAttachmentsDirectory('public/uploads')

Package Version

1.7.2

PHP Version

8.2.3

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

mohamedsabil83 commented 1 year ago

Hi @slusarsu Sorry for the late reply. I overlooked your issue because I was swamped with work lately You can use the->setConvertUrls(false) method for your issue.

slusarsu commented 1 year ago

Hi @mohamedsabil83 . It is works. Thank you!

mohamedsabil83 commented 1 year ago

You're welcome 😎