diff --git a/static/admin/index.html b/static/admin/index.html
index 7c939980..8183395d 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -14,11 +14,12 @@
CMS.registerEditorComponent({
id: "gallery",
label: "Bildergallerie",
- fields: {
+ fields: [{
name: "dir",
label: "Ordner",
widget: "string"
},
+ ],
pattern: /{{< gallery dir="([a-zA-Z0-9]+)" >}}/,
fromBlock: function(match) {
return {