Textarea using quotes one quote's removed

hi all,

i just stumbled accross a phenomen:
I use a textarea inside a structure construct to save js code. Saving e.g. this line
gtag("event", "Contactform_filled", { "event_category": "Form", "event_label": "ok" });
and reloading the page I suddenly find either the first or the last quote missing, e.g. event_label": "ok"

I’ve also tested this in a freshly installed starterkit in the “About us” section. Inside a textarea in a block results in the same way - one of the quotes are missing. Both open on click the same kind of drawer so I believe it’s hidden somewhere there.

The only way to circumvent this was by applying surrounding quotes like here: ""event_label": "ok""

Could be an issue of the older Spyc YAML parser.

If it works for you, you could try out the Symfony handler: yaml | Kirby CMS

Thanks for the tip, but lead to the entire panel being blocked by this error:

The reserved indicator “@” cannot start a plain scalar; you need to quote the scalar at line 32 (near “placeholder: @username”).

Tried it with both 4.3 & 4.3.1

This is because the Symfony parser is a bit stricter on the YAML syntax.

Replace in your blueprint

placeholder: @username

with

placeholder: "@username"