mohamedsabil83 / filament-forms-tinyeditor

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

[Bug]: field is cleared when it's a part of a component with drag and drop option #82

Closed cisca closed 11 months ago

cisca commented 11 months ago

What happened?

When TinyEditor used inside a Builder or Repeater Filament component and I drag and drop it the TinyEditor field cleared and can't be edit.

How to reproduce the bug

Make a Filament Form, put inside Repeater Component and use TinyEditor in this Component. Next make some repeated fields of the Repeater, put some text inside and try to change thier order.

Package Version

1.7.4

PHP Version

8.1

Laravel Version

9

Which operating systems does with happen with?

Linux

Notes

Moving the iFrame editor around the DOM is not supported in Tiny. They offer to use remove() and init() instead

mohamedsabil83 commented 11 months ago

Update the package to the latest version and re-publish the assets like following:

php artisan vendor:publish --tag=filament-forms-tinyeditor-assets --force
cisca commented 11 months ago

It helps. Thanks a lot.

mohamedsabil83 commented 11 months ago

You're welcome. Enjoy