@json-editor/json-editor 2.13.2 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +2 -1
  3. package/dist/jsoneditor.js +1 -1
  4. package/dist/jsoneditor.js.LICENSE.txt +1 -1
  5. package/dist/nonmin/jsoneditor.js +436 -247
  6. package/dist/nonmin/jsoneditor.js.map +1 -1
  7. package/docs/imask.html +1 -1
  8. package/docs/meta_schema.json +3 -0
  9. package/package.json +1 -1
  10. package/src/defaults.js +5 -1
  11. package/src/editor.js +15 -2
  12. package/src/editors/array/selectize.js +13 -0
  13. package/src/editors/array.js +16 -2
  14. package/src/editors/info.js +1 -1
  15. package/src/editors/multiple.js +13 -2
  16. package/src/editors/multiselect.js +3 -2
  17. package/src/editors/object.js +20 -3
  18. package/src/editors/radio.js +4 -0
  19. package/src/editors/select.js +1 -1
  20. package/src/editors/starrating.js +5 -1
  21. package/src/editors/string.js +5 -3
  22. package/src/editors/table.js +3 -2
  23. package/src/theme.js +56 -4
  24. package/src/themes/barebones.js +1 -0
  25. package/src/themes/bootstrap3.js +49 -12
  26. package/src/themes/bootstrap4.js +38 -13
  27. package/src/themes/bootstrap5.js +37 -7
  28. package/src/themes/html.js +1 -0
  29. package/src/themes/spectre.js +15 -7
  30. package/src/validator.js +4 -3
  31. package/tests/codeceptjs/core_test.js +11 -0
  32. package/tests/codeceptjs/editors/array_test.js +7 -0
  33. package/tests/codeceptjs/editors/button_test.js +1 -1
  34. package/tests/codeceptjs/editors/checkbox_test.js +1 -1
  35. package/tests/codeceptjs/editors/integer_test.js +1 -1
  36. package/tests/codeceptjs/editors/multiselect_test.js +1 -1
  37. package/tests/codeceptjs/editors/number_test.js +1 -1
  38. package/tests/codeceptjs/editors/object_test.js +7 -0
  39. package/tests/codeceptjs/editors/radio_test.js +1 -2
  40. package/tests/codeceptjs/editors/rating_test.js +1 -2
  41. package/tests/codeceptjs/editors/select_test.js +1 -1
  42. package/tests/codeceptjs/editors/string_test.js +1 -1
  43. package/tests/codeceptjs/issues/issue-gh-1171_test.js +11 -0
  44. package/tests/codeceptjs/issues/issue-gh-1272_test.js +21 -0
  45. package/tests/codeceptjs/issues/issue-gh-1471_test.js +17 -0
  46. package/tests/codeceptjs/issues/issue-gh-1485_test.js +13 -0
  47. package/tests/codeceptjs/issues/issue-gh-1491_test.js +9 -0
  48. package/tests/codeceptjs/issues/issue-gh-812_test.js +2 -2
  49. package/tests/codeceptjs/meta-schema_test.js +1 -1
  50. package/tests/codeceptjs/schemaloader_test.js +1 -1
  51. package/tests/pages/advanced.html +1 -1
  52. package/tests/pages/anyof-2.html +1 -0
  53. package/tests/pages/anyof.html +4 -2
  54. package/tests/pages/array-anyof.html +5 -2
  55. package/tests/pages/array-checkboxes-infotext.html +5 -2
  56. package/tests/pages/array-checkboxes.html +5 -2
  57. package/tests/pages/array-choices.html +5 -2
  58. package/tests/pages/array-events-table.html +5 -2
  59. package/tests/pages/array-events.html +7 -3
  60. package/tests/pages/array-header-template.html +1 -0
  61. package/tests/pages/array-integers.html +5 -2
  62. package/tests/pages/array-multiselects.html +5 -2
  63. package/tests/pages/array-nested-arrays.html +5 -2
  64. package/tests/pages/array-numbers.html +5 -2
  65. package/tests/pages/array-objects.html +5 -2
  66. package/tests/pages/array-ratings.html +5 -2
  67. package/tests/pages/array-selectize-create.html +1 -0
  68. package/tests/pages/array-selectize.html +5 -2
  69. package/tests/pages/array-selects.html +5 -2
  70. package/tests/pages/array-strings.html +5 -2
  71. package/tests/pages/array-table-responsive.html +1 -0
  72. package/tests/pages/array-unique-items-sort.html +5 -2
  73. package/tests/pages/array.html +5 -2
  74. package/tests/pages/autocomplete.html +3 -1
  75. package/tests/pages/button-callbacks.html +4 -2
  76. package/tests/pages/button-icons.html +2 -1
  77. package/tests/pages/button_state_mode_1.html +1 -0
  78. package/tests/pages/button_state_mode_2.html +1 -0
  79. package/tests/pages/checkbox-labels.html +4 -2
  80. package/tests/pages/colorpicker-no-3rd-party.html +4 -2
  81. package/tests/pages/colorpicker-use-vanilla-picker.html +4 -2
  82. package/tests/pages/container-attributes.html +1 -0
  83. package/tests/pages/contains.html +1 -0
  84. package/tests/pages/core.html +5 -3
  85. package/tests/pages/datetime.html +2 -0
  86. package/tests/pages/dependentRequired.html +1 -0
  87. package/tests/pages/dependentSchemas.html +1 -0
  88. package/tests/pages/disable-button-in-object-editors.html +1 -0
  89. package/tests/pages/error-messages.html +1 -0
  90. package/tests/pages/form-name.html +4 -1
  91. package/tests/pages/grid-strict.html +3 -2
  92. package/tests/pages/grid.html +3 -2
  93. package/tests/pages/if-else.html +1 -0
  94. package/tests/pages/if-then-else-allOf.html +1 -0
  95. package/tests/pages/if-then-else-disable-fields.html +1 -0
  96. package/tests/pages/if-then-else.html +1 -0
  97. package/tests/pages/if-then.html +1 -0
  98. package/tests/pages/inheritance.html +6 -2
  99. package/tests/pages/integer.html +4 -2
  100. package/tests/pages/issues/_template.html +1 -1
  101. package/tests/pages/issues/issue-gh-1158-2.html +1 -1
  102. package/tests/pages/issues/issue-gh-1158.html +1 -1
  103. package/tests/pages/issues/issue-gh-1171.html +39 -0
  104. package/tests/pages/issues/issue-gh-1272.html +167 -0
  105. package/tests/pages/issues/issue-gh-1364.html +1 -1
  106. package/tests/pages/issues/issue-gh-1367.html +1 -1
  107. package/tests/pages/issues/issue-gh-1466.html +63 -0
  108. package/tests/pages/issues/issue-gh-1471.html +49 -0
  109. package/tests/pages/issues/issue-gh-1485.html +59 -0
  110. package/tests/pages/issues/issue-gh-1491.html +59 -0
  111. package/tests/pages/issues/issue-gh-812.html +3 -2
  112. package/tests/pages/issues/issue-gh-823-meta-schema.html +1 -1
  113. package/tests/pages/issues/issue-gh-848.html +1 -1
  114. package/tests/pages/keep_only_existing_values.html +1 -0
  115. package/tests/pages/load-events.html +1 -0
  116. package/tests/pages/maxContains.html +1 -0
  117. package/tests/pages/meta-schema.html +4 -0
  118. package/tests/pages/meta_schema.json +3 -0
  119. package/tests/pages/minContains.html +1 -0
  120. package/tests/pages/number.html +4 -2
  121. package/tests/pages/object-case-sensitive-property-search-false.html +2 -1
  122. package/tests/pages/object-case-sensitive-property-search-true.html +2 -1
  123. package/tests/pages/object-no-additional-properties.html +5 -2
  124. package/tests/pages/object-no-duplicated-id.html +2 -0
  125. package/tests/pages/object-required-properties.html +5 -3
  126. package/tests/pages/object-show-opt-in.html +3 -2
  127. package/tests/pages/object-with-dependencies-array.html +4 -2
  128. package/tests/pages/object-with-dependencies.html +2 -0
  129. package/tests/pages/object.html +5 -3
  130. package/tests/pages/oneof-2.html +1 -0
  131. package/tests/pages/oneof.html +4 -2
  132. package/tests/pages/option-dependencies.html +1 -0
  133. package/tests/pages/option-no_default_values.html +4 -2
  134. package/tests/pages/per-editor-options.html +1 -1
  135. package/tests/pages/programmatic-changes.html +4 -3
  136. package/tests/pages/range.html +4 -2
  137. package/tests/pages/read-only.html +36 -5
  138. package/tests/pages/ready.html +2 -1
  139. package/tests/pages/references.html +1 -1
  140. package/tests/pages/select.html +4 -3
  141. package/tests/pages/stepper-manual.html +4 -2
  142. package/tests/pages/stepper.html +4 -2
  143. package/tests/pages/string-ace-editor.html +4 -2
  144. package/tests/pages/string-cleave.html +4 -2
  145. package/tests/pages/string-custom-attributes.html +4 -2
  146. package/tests/pages/string-formats.html +4 -2
  147. package/tests/pages/string-formats2.html +4 -2
  148. package/tests/pages/string-jodit-editor.html +4 -2
  149. package/tests/pages/string-sceditor.html +4 -2
  150. package/tests/pages/string-simplemde-editor.html +4 -2
  151. package/tests/pages/table.html +4 -2
  152. package/tests/pages/tabs.html +1 -1
  153. package/tests/pages/themes.html +38 -52
  154. package/tests/pages/title-hidden.html +75 -0
  155. package/tests/pages/translate-property.html +2 -1
  156. package/tests/pages/urn.html +4 -2
  157. package/tests/pages/use-name-attributes.html +2 -1
  158. package/tests/pages/uuid.html +2 -0
  159. package/tests/pages/validation.html +2 -1
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1171</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <h1>Test</h1>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1171">Link to issue</a>
16
+ <div id='editor_holder'></div>
17
+ </div>
18
+
19
+ <script>
20
+ const value = document.querySelector('#value')
21
+ const defaultSchema = {
22
+ "type": "string",
23
+ "format": "radio",
24
+ "title": "Gender",
25
+ "enum": [
26
+ "male",
27
+ "female"
28
+ ]
29
+ }
30
+
31
+ const editor = new JSONEditor(document.getElementById('editor_holder'), {
32
+ iconlib: 'fontawesome5',
33
+ schema: defaultSchema,
34
+ theme: 'bootstrap4',
35
+ use_name_attributes: false
36
+ })
37
+ </script>
38
+ </body>
39
+ </html>
@@ -0,0 +1,167 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1272</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <h1>Test</h1>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1272">Link to issue</a>
16
+ <div id='editor_holder'></div>
17
+ </div>
18
+
19
+ <script>
20
+ const value = document.querySelector('#value')
21
+ const defaultSchema = {
22
+ "$schema": "http://json-schema.org/draft-04/schema#",
23
+ "title": "&nbsp;",
24
+ "description": "&nbsp;",
25
+ "type": "object",
26
+ "format": "categories",
27
+ "options": {
28
+ "keep_oneof_values": false,
29
+ "disable_collapse": true
30
+ },
31
+ "properties": {
32
+ "recorder": {
33
+ "title": "Recorder",
34
+ "type": "object",
35
+ "format": "grid-strict",
36
+ "properties": {
37
+ "albums": {
38
+ "title": "Select album:",
39
+ "type": "string",
40
+ "options": {
41
+ "grid_columns": 2
42
+ },
43
+ "enum": [
44
+ "album1",
45
+ "album2"
46
+ ]
47
+ },
48
+ "album1": {
49
+ "title": "&nbsp;",
50
+ "type": "object",
51
+ "format": "grid-strict",
52
+ "options": {
53
+ "disable_collapse": true,
54
+ "dependencies": {
55
+ "albums": "album1"
56
+ }
57
+ },
58
+ "required": [
59
+ "song1",
60
+ "song2"
61
+ ],
62
+ "properties": {
63
+ "song1": {
64
+ "options": {
65
+ "grid_columns": 4
66
+ },
67
+ "type": "string"
68
+ },
69
+ "song2": {
70
+ "options": {
71
+ "grid_columns": 4
72
+ },
73
+ "type": "string"
74
+ }
75
+ }
76
+ },
77
+ "album2": {
78
+ "title": "&nbsp;",
79
+ "options": {
80
+ "dependencies": {
81
+ "albums": "album2"
82
+ }
83
+ },
84
+ "oneOf": [
85
+ {
86
+ "title": "SideA",
87
+ "type": "object",
88
+ "format": "grid-strict",
89
+ "options": {
90
+ "disable_collapse": true
91
+ },
92
+ "required": [
93
+ "song1",
94
+ "song2"
95
+ ],
96
+ "properties": {
97
+ "song1": {
98
+ "options": {
99
+ "grid_columns": 3
100
+ },
101
+ "type": "string"
102
+ },
103
+ "song2": {
104
+ "options": {
105
+ "grid_columns": 3
106
+ },
107
+ "type": "string"
108
+ }
109
+ }
110
+ },
111
+ {
112
+ "title": "SideB",
113
+ "type": "object",
114
+ "format": "grid-strict",
115
+ "options": {
116
+ "disable_collapse": true
117
+ },
118
+ "required": [
119
+ "songs"
120
+ ],
121
+ "properties": {
122
+ "songs": {
123
+ "title": "array editor",
124
+ "type": "array",
125
+ "format": "table",
126
+ "uniqueItems": true,
127
+ "items": {
128
+ "title": "song",
129
+ "type": "object",
130
+ "options": {
131
+ "disable_collapse": true
132
+ },
133
+ "properties": {
134
+ "song": {
135
+ "type": "integer",
136
+ "enum": [
137
+ 1,
138
+ 2,
139
+ 3,
140
+ 4,
141
+ 5
142
+ ]
143
+ },
144
+ "title": {
145
+ "type": "string"
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ ]
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ const editor = new JSONEditor(document.getElementById('editor_holder'), {
160
+ iconlib: 'fontawesome5',
161
+ schema: defaultSchema,
162
+ theme: 'bootstrap4',
163
+ keep_oneof_values: false
164
+ })
165
+ </script>
166
+ </body>
167
+ </html>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>GitHub Issue 1364</title>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>GitHub Issue 1367</title>
@@ -0,0 +1,63 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1466</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/nonmin/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <textarea class="form-control" id="value" cols="30" rows="10"></textarea>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1466">GitHub Issue 1466</a>
16
+
17
+ <p>Remove Item 2, then destroy editor. The row of Item 2 which is only stored in the cache is not destroyed.</p>
18
+ <div id='editor_holder'></div>
19
+ <button onclick="start()">start </button>
20
+ <button onclick="destroyEditor()">destroyEditor </button>
21
+ </div>
22
+
23
+ <script>
24
+ var value = document.querySelector('#value')
25
+ var editor;
26
+ function start()
27
+ {
28
+ var defaultSchema = {
29
+ "type": "object",
30
+ "properties": {
31
+ "array": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "someProperty": {
37
+ "type": "string"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ editor = new JSONEditor(document.getElementById('editor_holder'), {
46
+ iconlib: 'fontawesome5',
47
+ schema: defaultSchema,
48
+ show_errors: 'always',
49
+ })
50
+
51
+ editor.on('ready', function () {
52
+ editor.setValue({ "array": [{ someProperty: "Item 1" }, { someProperty: "Item 2" }, { someProperty: "Item 3" }] })
53
+ })
54
+ }
55
+
56
+ function destroyEditor()
57
+ {
58
+ editor.destroy();
59
+ editor = undefined;
60
+ }
61
+ </script>
62
+ </body>
63
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1471</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <h1>Test</h1>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1471">Link to issue</a>
16
+ <div id='editor_holder'></div>
17
+ </div>
18
+
19
+ <script>
20
+ const value = document.querySelector('#value')
21
+ const defaultSchema = {
22
+ "title": "Test",
23
+ "type": "object",
24
+ "properties": {
25
+ "date": {
26
+ "type": "string",
27
+ "format": "date"
28
+ },
29
+ "time": {
30
+ "type": "string",
31
+ "format": "time"
32
+ },
33
+ "datetime-local": {
34
+ "type": "string",
35
+ "format": "datetime-local"
36
+ }
37
+ }
38
+ }
39
+
40
+ const editor = new JSONEditor(document.getElementById('editor_holder'), {
41
+ iconlib: 'fontawesome5',
42
+ schema: defaultSchema,
43
+ theme: 'bootstrap4',
44
+ show_errors: 'always',
45
+ startval: {"date": "2024-01-18", "time": "13:12", "datetime-local": "2024-01-18T13:11"}
46
+ })
47
+ </script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,59 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1485</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <h1>Test</h1>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1485">Link to issue</a>
16
+ <div id='editor_holder'></div>
17
+ </div>
18
+
19
+ <script>
20
+ const value = document.querySelector('#value')
21
+ const defaultSchema = {
22
+ "title": "json schema example",
23
+ "type": "object",
24
+ "properties": {
25
+ "example": {
26
+ "type": "string",
27
+ "template": "random_string"
28
+ },
29
+ "first_name": {
30
+ "type": "string"
31
+ },
32
+ "last_name": {
33
+ "type": "string"
34
+ },
35
+ "full_name": {
36
+ "type": "string",
37
+ "template": "{{ fname }} {{ lname }}",
38
+ "watch": {
39
+ "fname": "first_name",
40
+ "lname": "last_name"
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ window.JSONEditor.defaults.callbacks.template = {
47
+ "random_string": () => {
48
+ return Math.random() * 2
49
+ }
50
+ }
51
+
52
+ const editor = new JSONEditor(document.getElementById('editor_holder'), {
53
+ iconlib: 'fontawesome5',
54
+ schema: defaultSchema,
55
+ theme: 'bootstrap4'
56
+ })
57
+ </script>
58
+ </body>
59
+ </html>
@@ -0,0 +1,59 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>GitHub Issue 1491</title>
6
+ <link rel="stylesheet" id="theme-link" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
7
+ <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
9
+ <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
10
+ <script src="../../../dist/jsoneditor.js"></script>
11
+ </head>
12
+ <body>
13
+ <div class="container">
14
+ <h1>Test</h1>
15
+ <a href="https://github.com/json-editor/json-editor/issues/1491">Link to issue</a>
16
+ <div id='editor_holder'></div>
17
+ </div>
18
+
19
+ <script>
20
+ const value = document.querySelector('#value')
21
+ const defaultSchema = {
22
+ "options": {
23
+ "titleHidden": true
24
+ },
25
+ "type": "object",
26
+ "required": [
27
+ "betreff",
28
+ "text"
29
+ ],
30
+ "properties": {
31
+ "betreff": {
32
+ "title": "Betreff",
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 100
36
+ },
37
+ "text": {
38
+ "title": "Text",
39
+ "type": "string",
40
+ "format": "textarea",
41
+ "minLength": 1,
42
+ "maxLength": 500,
43
+ "options": {
44
+ "inputAttributes": {
45
+ "rows": 3
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ const editor = new JSONEditor(document.getElementById('editor_holder'), {
53
+ iconlib: 'fontawesome5',
54
+ schema: defaultSchema,
55
+ theme: 'bootstrap3'
56
+ })
57
+ </script>
58
+ </body>
59
+ </html>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>GitHub Issue 812</title>
@@ -8,7 +8,8 @@
8
8
  <body>
9
9
  <h1><a href="https://github.com/json-editor/json-editor/issues/812">GitHub Issue 812</a></h1>
10
10
 
11
- <textarea class="debug" cols="30" rows="10"></textarea>
11
+ <label for="debug">Value</label>
12
+ <textarea id="debug" class="debug" cols="30" rows="10"></textarea>
12
13
  <button class='get-value'>Get Value</button>
13
14
 
14
15
  <div id='editor_holder'></div>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Meta Schema - Test Template</title>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>GitHub Issue 848</title>
@@ -10,6 +10,7 @@
10
10
  <body>
11
11
 
12
12
  <div class="container">
13
+ <h1>Test</h1>
13
14
  <label for="value">Value</label>
14
15
  <textarea class="form-control" id="value" rows="12" style="font-size: 12px; font-family: monospace;"></textarea>
15
16
  <button id="set-value">Set Value</button>
@@ -10,6 +10,7 @@
10
10
  <body>
11
11
 
12
12
  <div class="container">
13
+ <h1>Test</h1>
13
14
  <div id="events-container"></div>
14
15
  <div id='editor-container'></div>
15
16
  </div>
@@ -10,6 +10,7 @@
10
10
  <body>
11
11
 
12
12
  <div class="container">
13
+ <h1>Test</h1>
13
14
  <div id='editor-container'></div>
14
15
  </div>
15
16
 
@@ -10,6 +10,7 @@
10
10
  <body>
11
11
 
12
12
  <div class="container">
13
+ <h1>Test</h1>
13
14
  <label for="value">Value</label>
14
15
  <textarea class="form-control" id="value" rows="12" style="font-size: 12px; font-family: monospace;"></textarea>
15
16
  <button class='set-value'>Set Value</button>
@@ -680,6 +681,9 @@
680
681
  'default': {},
681
682
  'defaultProperties': {},
682
683
  'properties': {
684
+ 'titleHidden': {
685
+ 'type': 'boolean'
686
+ },
683
687
  'enum_titles': {
684
688
  'type': 'array',
685
689
  'uniqueItems': true,
@@ -646,6 +646,9 @@
646
646
  "default": {},
647
647
  "defaultProperties": {},
648
648
  "properties": {
649
+ "titleHidden": {
650
+ "type": "boolean"
651
+ },
649
652
  "enum_titles": {
650
653
  "type": "array",
651
654
  "uniqueItems": true,
@@ -10,6 +10,7 @@
10
10
  <body>
11
11
 
12
12
  <div class="container">
13
+ <h1>Test</h1>
13
14
  <div id='editor-container'></div>
14
15
  </div>
15
16
 
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8"/>
5
5
  <title>Number</title>
@@ -10,7 +10,9 @@
10
10
  </head>
11
11
  <body>
12
12
 
13
- <textarea class="value" cols="30" rows="10"></textarea>
13
+ <h1>Test</h1>
14
+ <label for="value">value</label>
15
+ <textarea class="value" id="value" cols="30" rows="10"></textarea>
14
16
  <button class='get-value'>Get Value</button>
15
17
  <button class='set-value'>Set Value</button>
16
18
  <div class='json-editor-container'></div>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Object case sensitive property search</title>
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
  <body>
11
11
  <div class="container">
12
+ <h1>Test</h1>
12
13
  <a href="https://github.com/json-editor/json-editor/issues/1400">Object case sensitive property search</a>
13
14
  <div id='editor_holder'></div>
14
15
  </div>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Object case sensitive property search</title>
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
  <body>
11
11
  <div class="container">
12
+ <h1>Test</h1>
12
13
  <a href="https://github.com/json-editor/json-editor/issues/1400">Object case sensitive property search</a>
13
14
  <div id='editor_holder'></div>
14
15
  </div>
@@ -1,12 +1,15 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
+ <title>no additional properties</title>
4
5
  <meta charset="utf-8"/>
5
6
  <script src="../../dist/jsoneditor.js"></script>
6
7
  </head>
7
8
  <body>
8
9
 
9
- <textarea class="value" cols="30" rows="10"></textarea>
10
+ <h1>Test</h1>
11
+ <label for="value">value</label>
12
+ <textarea class="value" id="value" cols="30" rows="10"></textarea>
10
13
  <button class='get-value'>get value</button>
11
14
  <div class='container'></div>
12
15
 
@@ -9,7 +9,9 @@
9
9
  <body>
10
10
 
11
11
  <div class="container">
12
+ <h1>Test</h1>
12
13
  <div class="form-group">
14
+ <label for="value">Value</label>
13
15
  <textarea id="value" class="form-control" rows="10"></textarea>
14
16
  </div>
15
17
  <button id="get-value" class='btn btn-secondary'>get value</button>