josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
814 stars 108 forks source link

Allow Spellcheck #407

Open Mehayes411 opened 4 months ago

Mehayes411 commented 4 months ago

Please provided a configuration option to allow spellcheck instead of expressly turning it off.

https://github.com/josdejong/svelte-jsoneditor/blob/4ee50a2f126d7c26cef25b6f01adb08d86f43a97/src/lib/components/controls/EditableDiv.svelte#L161

Thanks

josdejong commented 4 months ago

Good point. We can indeed make that configurable. I think we could:

  1. disable spell check (current behavior)
  2. enable spell check for values only
  3. enable spell check for keys and values

Do you think there is need for this option (3): spell check on keys? I doubt it, and it would make the option easier if it is just a boolean for two options.

josdejong commented 4 months ago

Anyone interested in implementing an option to enable spellcheck? Help would be welcome.