We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e73a4 commit dd3bc18Copy full SHA for dd3bc18
django_admin_json_editor/__init__.py
@@ -1,3 +1,3 @@
1
from .admin import JSONEditorWidget # noqa
2
3
-__version__ = '0.2.9'
+__version__ = '0.2.10'
django_admin_json_editor/templates/django_admin_json_editor/editor.html
@@ -3,6 +3,9 @@
<div id="{{ name }}_editor"></div>
4
5
<script>
6
+var {{ js_name }}_editor;
7
+var {{ js_name }}_changees = 0;
8
+
9
addEventListener("DOMContentLoaded", (event) => {
10
var container = document.getElementById("{{ name }}_editor");
11
var options = {
@@ -11,10 +14,6 @@
14
schema: {{ schema|json_dumps }}
12
15
};
13
16
- var {{ js_name }}_editor;
-
- var {{ js_name }}_changees = 0;
17
18
function {{ js_name }}_init(container, options) {
19
{{ js_name }}_changees = 0;
20
JSONEditor.defaults.options = {{ default_options|json_dumps }};
0 commit comments