stepanenko3 / nova-settings

This Laravel Nova settings tool based on env, using nativ nova fields and resources
MIT License
31 stars 5 forks source link

Compatibility with fields that require additional JS #1

Closed Specialistinwebsites closed 2 years ago

Specialistinwebsites commented 2 years ago

It currently does not support "murdercode/Nova4-TinymceEditor" or "emilianotisato/nova-tinymce".

This is only because it merges the fields to make them all save in the "settings" field. If overriding the fields method in the settings model with (new $this->type)->fields(); instead of (new $this->type)->getFields('settings') it'll work but it tries to save the fields in their corresponding field name in the database.

Is it possible to manipulate this in any way?

Specialistinwebsites commented 2 years ago

Ah, "emilianotisato/nova-tinymce" supports a custom "->id('name')" method that fixes the ID that JS uses to mount the editor. This actually fixed the issue 😄