emilianotisato / nova-tinymce

Laravel Nova TinyMCE editor (with images upload capabilities!)
MIT License
116 stars 38 forks source link

Nova flexible content compatibility #84

Closed MaxKorlaar closed 10 months ago

MaxKorlaar commented 1 year ago

This PR alters the FormField to re-render whenever the 'flexible-content-order-changed' event is emitted in Nova. This is done because whenever the FormField is moved in the DOM, the connection between the tinyMCE editor and its attached iframe is lost, thus breaking the editor unless it is re-rendered. Packages have also been updated. It might be worth noting that tinyMCE now includes a new setting, 'promotion', which promotes their premium services. You should set this to false if you don't want to see those promotions.

'default_options' => [
        ...
        'promotion' => false
],