minor fix
This commit is contained in:
parent
d014d66f0d
commit
5d97bedf3b
|
@ -43,7 +43,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="jsoneditor" style="width: 100%"></div>
|
<div id="jsoneditor" style="width: 100%"></div>
|
||||||
<script>
|
<script>
|
||||||
webObject = { getText: function(){ return '{"Array":[1,2,3],"Boolean":true,"Null":null,"Number":123,"Object":{"a":"b","c":"d"},"String":"Hello World"}'; }, getMode: function(){ return 'tree';}, getLanguage: function(){ return 'zh-CN';}, isEditable: function(){ return true;}, getHeight: function(){ return 400;}, };
|
// webObject = { getText: function(){ return '{"Array":[1,2,3],"Boolean":true,"Null":null,"Number":123,"Object":{"a":"b","c":"d"},"String":"Hello World"}'; }, getMode: function(){ return 'tree';}, getLanguage: function(){ return 'zh-CN';}, isEditable: function(){ return true;}, getHeight: function(){ return 400;}, };
|
||||||
// create the editor
|
// create the editor
|
||||||
const container = document.getElementById("jsoneditor");
|
const container = document.getElementById("jsoneditor");
|
||||||
container.style.height = webObject.getHeight() + "px";
|
container.style.height = webObject.getHeight() + "px";
|
||||||
|
|
Loading…
Reference in New Issue