Commit 5162d9e3 authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: support editing YAML

we pass the schema already, but for now this only supports basic
syntax highlighting
parent 4a67d957
Pipeline #27469 failed with stage
in 0 seconds
...@@ -113,6 +113,9 @@ ...@@ -113,6 +113,9 @@
} else if (options.content_type === 'application/json') { } else if (options.content_type === 'application/json') {
model_language = 'json'; model_language = 'json';
state_dict.json_schema_url = options.json_schema_url; state_dict.json_schema_url = options.json_schema_url;
} else if (options.content_type === 'application/x-yaml') {
model_language = 'yaml';
state_dict.json_schema_url = options.json_schema_url;
} }
state_dict.model_language = model_language; state_dict.model_language = model_language;
state_dict.value = options.value || ''; state_dict.value = options.value || '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment