Closed henriksommerfeld closed 1 month ago
Will check!
Looks like your config has an error: valueType
(camel case) has to be value_type
(snake case) as per the Number widget doc. For some reason, the properties for the Color widget are camel case, but otherwise property names in the config are always snake case 😉
valueType: 'float', # Replace the property name with value_type
I have a field defined like this in my config.yml:
When a value is set to
1.5
in markdown, it is parsed and presented as1
in the editor. Even if I enter1.5
again in the editor, it writes1
back to the markdown file. This config file is migrated from NetlifyCMS, but I don't see a reason for floats to be truncated to ints, right?I'm using the latest version through https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js.