forked from p96170835/amis
json-editor 中允许注释
This commit is contained in:
parent
62538c4392
commit
c6e4ed7285
|
@ -204,7 +204,8 @@ export class Editor extends React.Component<EditorProps, any> {
|
|||
// json 默认开启验证。
|
||||
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
||||
enableSchemaRequest: true,
|
||||
validate: true
|
||||
validate: true,
|
||||
allowComments: true
|
||||
});
|
||||
|
||||
// After initializing monaco editor
|
||||
|
|
Loading…
Reference in New Issue