When there are several keys at the same level in the custom configuration (TinyMCE configuration is sometimes at the same level), the rtrim and ltrim functions break the JSON array.
I fixed this by removing the functions and merging the custom config with spread syntax.
When there are several keys at the same level in the custom configuration (TinyMCE configuration is sometimes at the same level), the rtrim and ltrim functions break the JSON array. I fixed this by removing the functions and merging the custom config with spread syntax.
I created the Filament discord topic here for more information. Here: https://discord.com/channels/883083792112300104/922411184962035723/1042768313484316802
Example array
Thanks !