Editor not working with spaces in json name

Editor not working with spaces in json name

jimcan-redmondjimcan-redmond Posts: 2Questions: 1Answers: 0
edited June 2023 in Editor

I am using Editor 2.1.3 and trying to allow editing of json that has spaces in the field name like the following:

{
"field A": "abc",
"field B": "def"
}

The editor code assumes no spaces, as it appends the field name to DTE_Field_ to make a class name, which becomes "DTE_Field_field A", which obviously isn't going to work.

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Thanks for pointing that out - I've committed a fix and it will be in the next release.

    When you say "Editor not working" - do you mean specifically this issue, or a more general, not updating data? The class name for the field is just a convenience for extra styling if you want to add it. It shouldn't make any difference to the actual operation of Editor.

    Allan

Sign In or Register to comment.