ng-jsoneditor icon indicating copy to clipboard operation
ng-jsoneditor copied to clipboard

User shouldn't be able Insert fields when onEditable option is false

Open philmirez opened this issue 8 years ago • 1 comments

Set onEditable to false.

    $scope.obj = {
        data: json, 
        options: {
            mode: 'tree',
            onEditable: function(){return false;}
            }
     };

Click on the box [ ] to the left of a key and then select insert. Right now, a blank field and value are inserted. Warning signs are displayed without any capabilities to resolve since json is readonly.

image

philmirez avatar Oct 06 '17 20:10 philmirez

same here !

nooranshah avatar Dec 17 '21 08:12 nooranshah