whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
778 stars 230 forks source link

Emit an event in Nova whenever the order of a flexible content group changes #484

Open MaxKorlaar opened 8 months ago

MaxKorlaar commented 8 months ago

This is to accommodate Nova TinyMCE, which is not officially supported by this package. It emits the event 'flexible-content-order-changed' so that other packages, such as the Nova TinyMCE package, can respond accordingly and re-render TinyMCE for example.

I'm submitting this PR as a response to https://github.com/whitecube/nova-flexible-content/issues/156#issuecomment-1187148697, but I'd love to hear what you guys think about this solution now.