diff --git a/core/templates/core/widget_tag_editor.html b/core/templates/core/widget_tag_editor.html index 94b9a44e..bc2299e0 100644 --- a/core/templates/core/widget_tag_editor.html +++ b/core/templates/core/widget_tag_editor.html @@ -1,7 +1,3 @@ -
-{{ widget }} -
-
- Suggestions: +
+ +
+ +
+
+ Recently used: {% for t in widget.tag_suggestions.quick %} {{ t.name }} + {% endfor %} -
- + -
- -
- -
-
-
{ + const key = e.key.toLowerCase(); + if (key === "enter") { + e.preventDefault(); + createTagClicked(); + } + }); function hexParse(x) { return parseInt(x, 16); @@ -184,12 +179,7 @@ } function insertTag(list, tag) { - const createTag = list.querySelector(".createtag"); - if (createTag) { - list.insertBefore(tag, createTag); - } else { - list.appendChild(tag); - } + list.appendChild(tag); updateInputList(); }