jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

I want to make my json keys non editable

Open aman-gill22 opened this issue 3 years ago • 3 comments

hello sir, i would like your help regarding this issue. I am working on a blazor project involving the use of json editor , but i donot know how i can the keys non editable. Any help would be appreciated...

aman-gill22 avatar Oct 01 '21 03:10 aman-gill22

Maybe the form mode is useful for you. If not, see the docs on the onEditable option

Docs: https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md Example: https://github.com/josdejong/jsoneditor/blob/develop/examples/05_custom_fields_editable.html

josdejong avatar Oct 01 '21 07:10 josdejong

The above solution is failed in angular 14 image

can you tell me how to implement custom_fields_editable in angular 14? very thanks.

MichaelPanwenjie avatar Sep 12 '22 08:09 MichaelPanwenjie

I do not know what the error message of the red underlined code is, but I expect it is a TypeScript error? If so, solve the error or add a line // @ts-ignore above it as a workaround.

josdejong avatar Sep 12 '22 13:09 josdejong