X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=projecthandler%2Ftemplate%2Fproject%2Fosm%2Fdescriptor%2Fdescriptor_view.html;fp=projecthandler%2Ftemplate%2Fproject%2Fosm%2Fdescriptor%2Fdescriptor_view.html;h=3fd70a27471381be568c9b80c5230f0761744e8a;hb=a74cd4410d4a61cd97e691042fd20b7ed9c83502;hp=0b9512cb83d9a51d1118137d9302c6361cea648b;hpb=234c52e5ae5a0d799b85964509cfc5e9b5dfe5a6;p=osm%2FLW-UI.git diff --git a/projecthandler/template/project/osm/descriptor/descriptor_view.html b/projecthandler/template/project/osm/descriptor/descriptor_view.html index 0b9512c..3fd70a2 100644 --- a/projecthandler/template/project/osm/descriptor/descriptor_view.html +++ b/projecthandler/template/project/osm/descriptor/descriptor_view.html @@ -64,17 +64,17 @@ Edit {{ descriptor_type|upper }} Descriptor editorJSON = CodeMirror(function (elt) { myJsonTextArea.parentNode.replaceChild(elt, myJsonTextArea); }, json_editor_settings); - - editorJSON.setValue(JSON.stringify({{descriptor_strings.descriptor_string_json | safe}}, null, "\t")); editorJSON.setOption("autoRefresh", true); + editorJSON.setSize("auto", "auto"); + var myYamlTextArea = document.getElementById("code_editor_yaml"); editorYaml = CodeMirror(function (elt) { myYamlTextArea.parentNode.replaceChild(elt, myYamlTextArea); }, yaml_editor_settings); var des_strings = {{descriptor_strings | safe}}; editorYaml.setValue(des_strings.descriptor_string_yaml); - + editorYaml.setSize("auto", "auto"); });